Skip to content

This is the custom handler that we can put in WSO2 APIM where it will alow you to send the half of access token in the header and other half in the cookie

Notifications You must be signed in to change notification settings

GDRDABARERA/CustomHandlerToAuthorizeFromCookieNHeader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CustomHandlerToAuthorizeFromCookieNHeader

This is the custom handler that we can put in WSO2 APIM where it will alow you to send the half of access token in the header and other half in the cookie

1.) Build the project using maven

mvn clean install

  1. Put the jar to the dropins folder in <APIM_HOME>/repository/components/dropins

  2. Add the handler class to the <APIM_HOME>/repository/resources/api_templates/velocity_template.xml

        <handler class="org.wso2.custom.authenticator.handler.CustomAPIAuthenticationHandler"/>
       ......
    
  3. Restart the APIM. You should now try the API with harlf header and half cookie

  4. How to test? - You can not try the requests using CURL, you need to use a UI client like POST-MAN to add the Cookie as "access_token"

About

This is the custom handler that we can put in WSO2 APIM where it will alow you to send the half of access token in the header and other half in the cookie

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages