Forum Discussion
36 Replies
- alex_carverPuritanokay, I won't be much help there then Um, one sec.
- pratik_narodeNovice IIts fine golang part is sorted I can take care of that
- alex_carverPuritanI'll get you my process that I used with powershell, I actually didn't use outh2 (well I did that too, but differently).
- pratik_narodeNovice II just would need help to understand the flow and prerequisite to use OAuth for creating session in all Pure Product specially FlashArray and Pure1
- alex_carverPuritanbasically I authenticated with rest 1.x, then from the token used there, i grab the api token, authenticate with rest 2.x and then construct my auth header.
- pratik_narodeNovice IQuick call ?
- pratik_narodeNovice II have already did the same way, but this is api-token based authentication. This token will only work with FlashArray
- pratik_narodeNovice II was use OAuth i.e JWT token based authentication. So once I generate the token I can use the same to execute Pure1 api as well as FlashArray api
- alex_carverPuritancorrect, pure1 is different, entirely as you have to construct the jwt from your cert and the pure1 api. With powershell and python we have helpers that do that for you.
- alex_carverPuritankind of, they will be two different jwts entirely, but the overall process would be the same, just different inputs. the array doesn't strictly use a user api, rather it has a client id and application id. That you use to create the jwt with (as well as the cert).