Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

App Manager itself provides a token API. Web applications need to call this token API with the consumer/secret key pair [WCk1, WCSk1] provided by the App Manager, when they need to get an access token for a particular API. 

 

Info

This token API is deployed in the <PRODUCT_HOME>/repository/deployment/server/synapse-configs/default/api/_TokenAPI_.xml file. If App Manager is running with a port offset, then the port defined inside the _TokenAPI_.xml file needs to be changed accordingly. 

...

  • apiAlias - the alias name given when registering the API details in App Manager publisher.  
  • applicationToken - the base64 encoded value of consumer/secret key pair provided by App Manager.  
  • String payload - the payload needs to send the grant type and the scope value. Grant type need to be set as SAML2.  Scope should contain the value of samlTokenId cookie and apiAlias as comma separated strings.  
  •  httpClient.doPost - the token API provided by App Manager. Change it with the define port offset accordingly.

 

 

 

...