Skip to content

tikaa/OAuth2SAML

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GENERATING ENCODED SAML TOKEN FROM OAUTH TOKEN AND ISSUER

This is a REST web service that sends a SAML token (plain XML/encoded) on invocation.

INPUT PARAMS

token - Valid OAuth token for which the SAML token is required

issuer - issuer for the SAML token

encoding - whether the resulting SAML response needs to be encoded, if this parameter is null, SAML is sent plain xml format, if it is set to base64, SAML will be encoded in base64

OUTPUT

Generated SAML token either in encoded format OR xml format depending on the request header

Sample curl command to invoke the service

for encoded SAML curl -vk -X POST https://localhost:9443/oauth2saml/token -d 'token=${OAuthToken}&issuer=${Issuer}&encoding=base64'

for plain xml SAML curl -vk -X POST https://localhost:9443/oauth2saml/token -d 'token=${OAuthToken}&issuer=${Issuer}'

Configuration

Please put the configuration file oauth-saml-token-config.properties under <IS_HOME>/repository/conf/security to enable token caching.

LICENSE

Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) Licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)

About

Oauth to SAML swapping REST web service

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages