Layer7 API Management

Retrieve OAuth 2.0 Token Assertion sample policy 

Mar 03, 2017 09:21 AM

A sample policy using the 'Retrieve OAuth 2.0 Token' Assertion with the Authorization Code grant type.

This policy makes use of the OAuth 2.0 test clients (id/secret). 

 

1. Create a new endpoint on your gateway (i.e: /redirect)

2. Import the sample policy

3. Edit the OAuth2Client test client and change the callback URL to the endpoint created in step 1

4. Access the endpoint via browser (i.e: https://gateway.com:8443/redirect)

 

An HTML response will be received with your token.

 

This policy is provided as-is without warranty or support of any kind and intended only for guidance in using the assertion. This must not be used on production systems.

Statistics
0 Favorited
57 Views
1 Files
0 Shares
26 Downloads
Attachment(s)
zip file
Retrieve_OAuth_2.0_Token_Sample.zip   1 KB   1 version
Uploaded - May 29, 2019

Related Entries and Links

No Related Resource entered.