Hi,
I need help with authorization for an API that I am developing a Swagger UI console for.
The first thing you do with the console is log in. When you log successfully, you get the following Response Body:
{
"access_token": "some_token",
"token_type": "OAuth2",
"systemId": "some_id",
"accountType": "0",
"expires_in": "3599",
"tenant_id": "com.example",
"scope": "MyScope"
}
Subsequent API requests need to use the values of the systemId and access_token fields: the systemId should be used as the value of a path parameter called userUid, and the access_token is used as part of a header parameter called Authorization, which looks like this: 'NWB token="$access_token" authVersion="1.0" ', where $access_token is the value of access_token.
While users can just copy and paste, it would be nicer of the default values of userUid and Authorization could be picked up automatically.
Can anyone give me any pointers about how to do this?
--
You received this message because you are subscribed to the Google Groups "Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
--
--
--