I'm using WSO2 6.5.0, i created proxy service which calls external REST API,
But I have to add Bearer Token to the Header,
Please refer the below question :
How to call rest service from wso2 proxy service using BEARER Token?
Since ESB is working stateless, you have to set Bearer token from the client-side and send the request to the ESB.
Related
On the AWS side it needs to be orchestrated in such a way that on receiving both Access and Bearer token as comma separated it has to call the application API using the bearer token in the header. My app login works now post cognito login but signs out immediately back to the login page. Can someone please suggest .I am using JWT authorizer
I have API configured with OAuth Bearer token in WSO2 gateway. In Postman, i pass the Authorization Bearer token and Gateway authorizes and my service is invoked.
Now i want the authorization token in the Header. Only Body is coming to service. The token in the Header is not coming to the service. What configuration should be done in WSO2 publisher or WSO2 store in order to acheive this?
In conf/api-manager.xml, change value of "RemoveOAuthHeadersFromOutMessage" to false. Authorization header will not be removed and it will be available in the backend. This change needs to do in the gateway node.
my question is about wso2 Identity server service.
Is there any service in wso2 Identity server to get user Profile by passing session Token?
Yes we have.I found out it
https://localhost:9443/oauth2/userinfo
here we can pass Bearer openID auth token details and get the userinfo
Is there any token based Rest API, for authentication using wso2, like openam provides REST API for authentication.
I can see there is available for OAuth token api
https://docs.wso2.com/display/IS450/OAuth+Bearer+Token-based+Authentication+for+SCIM+Endpoints
but for STS, Is there any REST API for example I am login using Username Password and I got security token I can use it session.
I had check saml SSO api example contain servlet , didn t work out for me
I have independent play web applications, my scenario is
web app1 login to wso2 ,
get sso token and saml token
suppose saml token expire in 10 min
web app1 can renew session using sso token,
And then request for a new saml token
Question is
WSO2: how does my app can refresh
login session using some token
If there is any API or using any REST API how this token is managed and re generated if SSO token is expired after some time
Thanks,
I currently have services protected via basic auth. If I front those services with API Manager, I need to pass in the OAuth bearer token AND the basic auth token. So the curl call looks something like:
curl -v -u myusername:mypassword -H "Accept: application/xml" -H "Authorization: Bearer 7a473720764791e63fe50934f416912" http://servicehose:8280/context/param
However, I get an internal server 500 error. How to call basic auth rest service fronted by API Manager?
There's an option to call a secured service from API Manager. When creating the API you can provide the URL of the secured backend service and then apply "Secured" option for Endpoint Security Scheme field. When selecting this, you'll have to provide the credentials to access the secured service. With this, you can invoke the API, by only providing the Bearer token. API Manager will create the Basic Header when accessing the back end service.