FailedConsole Output

Started by an SCM change
Running as SYSTEM
Building on master in workspace /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace
No credentials specified
 > git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin.url https://github.com/GluuFederation/oxAuth # timeout=10
Fetching upstream changes from https://github.com/GluuFederation/oxAuth
 > git --version # timeout=10
 > git fetch --tags --progress https://github.com/GluuFederation/oxAuth +refs/heads/*:refs/remotes/origin/* # timeout=10
 > git rev-parse refs/remotes/origin/master^{commit} # timeout=10
 > git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10
Checking out Revision c54f67c1a12df49ac012950f1195b166a64ea421 (refs/remotes/origin/master)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f c54f67c1a12df49ac012950f1195b166a64ea421 # timeout=10
Commit message: "Corrected key expiration messages logging: show it  only if auto re-new is not enabled or re-generation interval is too big for key lifetime #1211"
 > git rev-list --no-walk bc9d75837e765841cb9cac24062c6b4a8317276c # timeout=10
Run condition [Boolean condition] enabling prebuild for step [Trigger/call builds on other projects]
[workspace] $ /bin/bash /opt/jetty/temp/jenkins154208372403337555.sh
Cloning into 'oxHudsonProfiles'...
[workspace] $ /home/jenkins/.jenkins/tools/hudson.tasks.Maven_MavenInstallation/maven_3.3.9/bin/mvn -DDEPLOY_BUILD=true -DVERSION_NAME=master -DPROFILE_NAME=jenkins-cb.gluu.org -DDEVELOPMENT_BUILD=false -DCVSS_SCORE=9 -DMAVEN_SKIP_TESTS=false -Dpython.import.site=false -DPYTHON_HOME=/opt/jython -Dcfg=jenkins-cb.gluu.org -Dmaven.test.skip=false -Ddevelopment-build=false -Dcvss-score=9 clean compile install findbugs:findbugs javadoc:javadoc site
[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for org.gluu:oxauth-rp:war:4.1.0-SNAPSHOT
[WARNING] 'profiles.profile[jetty].dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.glassfish:javax.faces:jar -> duplicate declaration of version (?) @ org.gluu:oxauth-rp:[unknown-version], /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/RP/pom.xml, line 284, column 17
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING] 
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] oxAuth
[INFO] oxAuth Model
[INFO] Persistence model
[INFO] oxAuth Client
[INFO] oxauth-static
[INFO] oxAuth RP
[INFO] oxAuth RP Demo
[INFO] oxAuth Common
[INFO] oxAuth Fido2 Extension
[INFO] oxAuth Fido2 Extension Client
[INFO] oxAuth MTLS
[INFO] oxAuth Server
[INFO] rp-spring-boot
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building oxAuth 4.1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ oxauth ---
[INFO] Deleting /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/target
[INFO] 
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ oxauth ---
[INFO] Installing /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/pom.xml to /var/www/html/maven/org/gluu/oxauth/4.1.0-SNAPSHOT/oxauth-4.1.0-SNAPSHOT.pom
[INFO] 
[INFO] --- findbugs-maven-plugin:3.0.4:findbugs (default-cli) @ oxauth ---
[INFO] 
[INFO] >>> maven-javadoc-plugin:3.0.1:javadoc (default-cli) > generate-sources @ oxauth >>>
[INFO] 
[INFO] <<< maven-javadoc-plugin:3.0.1:javadoc (default-cli) < generate-sources @ oxauth <<<
[INFO] 
[INFO] --- maven-javadoc-plugin:3.0.1:javadoc (default-cli) @ oxauth ---
[INFO] 
[INFO] --- maven-site-plugin:2.1.1:site (default-site) @ oxauth ---
Downloading: http://repository.jboss.org/nexus/content/groups/public-jboss/org/apache/maven/skins/maven-default-skin/maven-metadata.xml
Downloading: http://repo2.maven.org/maven2/org/bouncycastle/org/apache/maven/skins/maven-default-skin/maven-metadata.xml
Downloading: http://ox.gluu.org/maven/org/apache/maven/skins/maven-default-skin/maven-metadata.xml
Downloading: http://repo1.maven.org/maven2/org/apache/maven/skins/maven-default-skin/maven-metadata.xml

428/428 B   
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/skins/maven-default-skin/maven-metadata.xml
            
Downloaded: http://repo1.maven.org/maven2/org/apache/maven/skins/maven-default-skin/maven-metadata.xml (428 B at 2.6 KB/sec)
            
428/428 B   
            
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/skins/maven-default-skin/maven-metadata.xml (428 B at 1.5 KB/sec)
428/428 B   
            
Downloaded: http://repository.jboss.org/nexus/content/groups/public-jboss/org/apache/maven/skins/maven-default-skin/maven-metadata.xml (428 B at 0.5 KB/sec)
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building oxAuth Model 4.1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ oxauth-model ---
[INFO] Deleting /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ oxauth-model ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ oxauth-model ---
[INFO] Compiling 174 source files to /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/classes
[WARNING] /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/src/main/java/org/gluu/oxauth/model/crypto/AbstractCryptoProvider.java:[23,23] RSAPublicKeyImpl is internal proprietary API and may be removed in a future release
[WARNING] /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/src/main/java/org/gluu/oxauth/model/crypto/AbstractCryptoProvider.java:[23,23] RSAPublicKeyImpl is internal proprietary API and may be removed in a future release
[WARNING] /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/src/main/java/org/gluu/oxauth/model/crypto/AbstractCryptoProvider.java:[23,23] RSAPublicKeyImpl is internal proprietary API and may be removed in a future release
[WARNING] /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/src/main/java/org/gluu/oxauth/model/crypto/AbstractCryptoProvider.java:[201,36] RSAPublicKeyImpl is internal proprietary API and may be removed in a future release
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ oxauth-model ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ oxauth-model ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ oxauth-model ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 4 resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ oxauth-model ---
[INFO] Compiling 9 source files to /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/test-classes
[INFO] 
[INFO] --- maven-surefire-plugin:2.19.1:test (default-test) @ oxauth-model ---

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running TestSuite
CodeVerifier{codeVerifier='UNOleBJHU5elcoBoCR.H~j53wkNSo4pB-vmxw4xrD3ptZxL7U3p2LleZq79zje-_58FFQId7Mwcxtl7wbWcqG58P_ImM7Q6B3A1Tfs1XEARTqb3fYa.0-A9jEO4AeJnN', codeChallenge='UNOleBJHU5elcoBoCR.H~j53wkNSo4pB-vmxw4xrD3ptZxL7U3p2LleZq79zje-_58FFQId7Mwcxtl7wbWcqG58P_ImM7Q6B3A1Tfs1XEARTqb3fYa.0-A9jEO4AeJnN', transformationType=PLAIN}
CodeVerifier{codeVerifier='xn0mG0.r~p30rB9JsNN1Jk1dB.0kY89zNQrQDWli._b7_oZVZKBJW2d75NTHswS0onlAuItGbvQblj1DyhxtPNkxDOAsnYvvnLg.xDHUQq-UwWCE1E7CKBZge4-VRF9f', codeChallenge='dK78qzqS_p3MAW9wcHhvl3VVPMUVjHCAtd9CYUv0bDc', transformationType=S256}
ERROR StatusLogger No Log4j 2 configuration file found. Using default configuration (logging only errors to the console), or user programmatically provided configurations. Set system property 'log4j2.debug' to show Log4j 2 internal initialization logging. See https://logging.apache.org/log4j/2.x/manual/configuration.html for instructions on how to configure Log4j 2
Hi there from Javascript, 
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.014 sec - in TestSuite

Results :

Tests run: 8, Failures: 0, Errors: 0, Skipped: 0

[INFO] 
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ oxauth-model ---
[INFO] Building jar: /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/oxauth-model.jar
[INFO] 
[INFO] --- maven-jar-plugin:2.4:test-jar (default) @ oxauth-model ---
[INFO] Building jar: /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/oxauth-model-tests.jar
[INFO] 
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ oxauth-model ---
[INFO] Installing /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/oxauth-model.jar to /var/www/html/maven/org/gluu/oxauth-model/4.1.0-SNAPSHOT/oxauth-model-4.1.0-SNAPSHOT.jar
[INFO] Installing /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/pom.xml to /var/www/html/maven/org/gluu/oxauth-model/4.1.0-SNAPSHOT/oxauth-model-4.1.0-SNAPSHOT.pom
[INFO] Installing /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/oxauth-model-tests.jar to /var/www/html/maven/org/gluu/oxauth-model/4.1.0-SNAPSHOT/oxauth-model-4.1.0-SNAPSHOT-tests.jar
[INFO] 
[INFO] --- findbugs-maven-plugin:3.0.4:findbugs (default-cli) @ oxauth-model ---
[INFO] Fork Value is true
     [java] Warnings generated: 64
[INFO] Done FindBugs Analysis....
[INFO] 
[INFO] >>> maven-javadoc-plugin:3.0.1:javadoc (default-cli) > generate-sources @ oxauth-model >>>
[INFO] 
[INFO] <<< maven-javadoc-plugin:3.0.1:javadoc (default-cli) < generate-sources @ oxauth-model <<<
[INFO] 
[INFO] --- maven-javadoc-plugin:3.0.1:javadoc (default-cli) @ oxauth-model ---
[INFO] 
Loading source files for package org.gluu.oxauth.model.authorize...
Loading source files for package org.gluu.oxauth.model.common...
Loading source files for package org.gluu.oxauth.model.configuration...
Loading source files for package org.gluu.oxauth.model.crypto...
Loading source files for package org.gluu.oxauth.model.crypto.binding...
Loading source files for package org.gluu.oxauth.model.crypto.encryption...
Loading source files for package org.gluu.oxauth.model.crypto.signature...
Loading source files for package org.gluu.oxauth.model.discovery...
Loading source files for package org.gluu.oxauth.model.error...
Loading source files for package org.gluu.oxauth.model.exception...
Loading source files for package org.gluu.oxauth.model.fido.u2f...
Loading source files for package org.gluu.oxauth.model.fido.u2f.exception...
Loading source files for package org.gluu.oxauth.model.fido.u2f.message...
Loading source files for package org.gluu.oxauth.model.fido.u2f.protocol...
Loading source files for package org.gluu.oxauth.model.gluu...
Loading source files for package org.gluu.oxauth.model.jwe...
Loading source files for package org.gluu.oxauth.model.jwk...
Loading source files for package org.gluu.oxauth.model.jws...
Loading source files for package org.gluu.oxauth.model.jwt...
Loading source files for package org.gluu.oxauth.model.register...
Loading source files for package org.gluu.oxauth.model.session...
Loading source files for package org.gluu.oxauth.model.token...
Loading source files for package org.gluu.oxauth.model.uma...
Loading source files for package org.gluu.oxauth.model.uma.persistence...
Loading source files for package org.gluu.oxauth.model.uma.wrapper...
Loading source files for package org.gluu.oxauth.model.userinfo...
Loading source files for package org.gluu.oxauth.model.util...
Constructing Javadoc information...
Standard Doclet version 1.8.0_221
Building tree for all the packages and classes...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/authorize/AuthorizeErrorResponseType.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/authorize/AuthorizeRequestParam.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/authorize/AuthorizeResponseParam.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/authorize/CodeVerifier.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/authorize/CodeVerifier.CodeChallengeMethod.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/common/AuthenticationMethod.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/common/AuthorizationMethod.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/common/Display.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/common/GrantType.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/common/HasParamName.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/common/Holder.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/common/Id.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/common/IdType.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/common/IntrospectionResponse.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/common/JSONable.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/common/PairwiseIdType.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/common/ProgrammingLanguage.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/common/Prompt.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/common/ResponseMode.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/common/ResponseType.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/common/ScopeType.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/common/SubjectType.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/common/TokenType.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/common/TokenTypeHint.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/common/WebKeyStorage.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/configuration/AppConfiguration.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/configuration/AuthenticationFilter.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/configuration/AuthenticationProtectionConfiguration.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/configuration/BaseFilter.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/configuration/ClientAuthenticationFilter.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/configuration/Configuration.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/configuration/ConfigurationResponseClaim.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/configuration/CorsConfigurationFilter.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/configuration/Fido2Configuration.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/crypto/AbstractCryptoProvider.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/crypto/Certificate.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/crypto/CryptoProviderFactory.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/crypto/Key.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/crypto/KeyFactory.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/crypto/OxAuthCryptoProvider.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/crypto/OxElevenCryptoProvider.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/crypto/PrivateKey.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/crypto/PublicKey.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/crypto/binding/TokenBinding.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/crypto/binding/TokenBindingExtension.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/crypto/binding/TokenBindingExtensionType.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/crypto/binding/TokenBindingID.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/crypto/binding/TokenBindingKeyParameters.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/crypto/binding/TokenBindingMessage.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/crypto/binding/TokenBindingMessageParser.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/crypto/binding/TokenBindingParseException.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/crypto/binding/TokenBindingStream.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/crypto/binding/TokenBindingType.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/crypto/encryption/BlockEncryptionAlgorithm.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/crypto/encryption/KeyEncryptionAlgorithm.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/crypto/signature/AbstractSigner.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/crypto/signature/AlgorithmFamily.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/crypto/signature/ECDSAKeyFactory.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/crypto/signature/ECDSAPrivateKey.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/crypto/signature/ECDSAPublicKey.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/crypto/signature/ECEllipticCurve.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/crypto/signature/RSAKeyFactory.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/crypto/signature/RSAPrivateKey.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/crypto/signature/RSAPublicKey.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/crypto/signature/SignatureAlgorithm.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/crypto/signature/Signer.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/discovery/OAuth2Discovery.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/discovery/WebFingerLink.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/discovery/WebFingerParam.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/error/ErrorHandlingMethod.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/error/IErrorType.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/exception/InvalidClaimException.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/exception/InvalidJweException.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/exception/InvalidJwtException.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/exception/InvalidParameterException.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/exception/SignatureException.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/fido/u2f/DeviceRegistrationStatus.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/fido/u2f/U2fConfiguration.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/fido/u2f/U2fConstants.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/fido/u2f/U2fErrorResponseType.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/fido/u2f/exception/BadInputException.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/fido/u2f/exception/RegistrationNotAllowed.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/fido/u2f/message/RawAuthenticateResponse.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/fido/u2f/message/RawRegisterResponse.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/fido/u2f/protocol/AuthenticateRequest.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/fido/u2f/protocol/AuthenticateRequestMessage.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/fido/u2f/protocol/AuthenticateResponse.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/fido/u2f/protocol/AuthenticateStatus.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/fido/u2f/protocol/ClientData.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/fido/u2f/protocol/DeviceData.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/fido/u2f/protocol/RegisterRequest.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/fido/u2f/protocol/RegisterRequestMessage.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/fido/u2f/protocol/RegisterResponse.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/fido/u2f/protocol/RegisterStatus.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/gluu/GluuConfiguration.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/gluu/GluuErrorResponseType.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/jwe/AbstractJweDecrypter.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/jwe/AbstractJweEncrypter.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/jwe/Jwe.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/jwe/JweDecrypter.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/jwe/JweDecrypterImpl.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/jwe/JweEncrypter.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/jwe/JweEncrypterImpl.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/jwe/KeyDerivationFunction.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/jwk/Algorithm.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/jwk/JSONWebKey.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/jwk/JSONWebKeySet.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/jwk/JWKParameter.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/jwk/KeyType.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/jwk/Use.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/jws/AbstractJwsSigner.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/jws/ECDSASigner.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/jws/HMACSigner.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/jws/JwsSigner.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/jws/PlainTextSignature.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/jws/RSASigner.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/jwt/Jwt.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/jwt/JwtClaimName.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/jwt/JwtClaims.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/jwt/JwtClaimSet.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/jwt/JwtHeader.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/jwt/JwtHeaderName.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/jwt/JwtStateClaimName.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/jwt/JwtSubClaimObject.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/jwt/JwtType.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/jwt/PureJwt.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/register/ApplicationType.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/register/RegisterErrorResponseType.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/register/RegisterRequestParam.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/register/RegisterResponseParam.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/session/EndSessionErrorResponseType.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/session/EndSessionRequestParam.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/session/EndSessionResponseParam.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/token/ClientAssertionType.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/token/JsonWebResponse.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/token/TokenErrorResponseType.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/token/TokenRevocationErrorResponseType.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/token/TokenRevocationRequestParam.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/uma/ClaimTokenFormatType.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/uma/JsonLogic.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/uma/JsonLogicNode.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/uma/JsonLogicNodeParser.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/uma/PermissionTicket.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/uma/RptIntrospectionResponse.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/uma/RptProfiles.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/uma/RPTResponse.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/uma/UmaConstants.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/uma/UmaErrorResponseType.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/uma/UmaMetadata.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/uma/UmaNeedInfoResponse.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/uma/UmaPermission.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/uma/UmaPermissionList.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/uma/UmaResource.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/uma/UmaResourceResponse.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/uma/UmaResourceWithId.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/uma/UmaScopeDescription.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/uma/UmaScopeType.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/uma/UmaTokenResponse.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/uma/persistence/UmaPermission.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/uma/persistence/UmaResource.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/uma/wrapper/Token.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/userinfo/Schema.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/userinfo/UserInfoErrorResponseType.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/util/Base64Util.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/util/ByteUtils.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/util/CertUtils.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/util/HashUtil.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/util/JwtUtil.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/util/LocaleUtil.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/util/Pair.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/util/SecurityProviderUtility.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/util/StringUtils.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/util/SubjectIdentifierGenerator.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/util/URLPatternList.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/util/Util.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/overview-frame.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/authorize/package-frame.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/authorize/package-summary.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/authorize/package-tree.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/common/package-frame.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/common/package-summary.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/common/package-tree.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/configuration/package-frame.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/configuration/package-summary.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/configuration/package-tree.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/crypto/package-frame.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/crypto/package-summary.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/crypto/package-tree.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/crypto/binding/package-frame.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/crypto/binding/package-summary.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/crypto/binding/package-tree.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/crypto/encryption/package-frame.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/crypto/encryption/package-summary.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/crypto/encryption/package-tree.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/crypto/signature/package-frame.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/crypto/signature/package-summary.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/crypto/signature/package-tree.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/discovery/package-frame.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/discovery/package-summary.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/discovery/package-tree.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/error/package-frame.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/error/package-summary.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/error/package-tree.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/exception/package-frame.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/exception/package-summary.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/exception/package-tree.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/fido/u2f/package-frame.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/fido/u2f/package-summary.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/fido/u2f/package-tree.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/fido/u2f/exception/package-frame.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/fido/u2f/exception/package-summary.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/fido/u2f/exception/package-tree.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/fido/u2f/message/package-frame.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/fido/u2f/message/package-summary.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/fido/u2f/message/package-tree.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/fido/u2f/protocol/package-frame.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/fido/u2f/protocol/package-summary.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/fido/u2f/protocol/package-tree.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/gluu/package-frame.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/gluu/package-summary.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/gluu/package-tree.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/jwe/package-frame.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/jwe/package-summary.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/jwe/package-tree.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/jwk/package-frame.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/jwk/package-summary.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/jwk/package-tree.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/jws/package-frame.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/jws/package-summary.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/jws/package-tree.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/jwt/package-frame.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/jwt/package-summary.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/jwt/package-tree.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/register/package-frame.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/register/package-summary.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/register/package-tree.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/session/package-frame.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/session/package-summary.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/session/package-tree.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/token/package-frame.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/token/package-summary.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/token/package-tree.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/uma/package-frame.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/uma/package-summary.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/uma/package-tree.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/uma/persistence/package-frame.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/uma/persistence/package-summary.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/uma/persistence/package-tree.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/uma/wrapper/package-frame.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/uma/wrapper/package-summary.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/uma/wrapper/package-tree.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/userinfo/package-frame.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/userinfo/package-summary.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/userinfo/package-tree.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/util/package-frame.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/util/package-summary.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/util/package-tree.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/constant-values.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/serialized-form.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/authorize/class-use/CodeVerifier.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/authorize/class-use/CodeVerifier.CodeChallengeMethod.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/authorize/class-use/AuthorizeResponseParam.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/authorize/class-use/AuthorizeRequestParam.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/authorize/class-use/AuthorizeErrorResponseType.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/common/class-use/ScopeType.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/common/class-use/WebKeyStorage.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/common/class-use/TokenTypeHint.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/common/class-use/TokenType.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/common/class-use/SubjectType.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/common/class-use/ResponseType.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/common/class-use/ResponseMode.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/common/class-use/Prompt.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/common/class-use/ProgrammingLanguage.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/common/class-use/PairwiseIdType.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/common/class-use/JSONable.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/common/class-use/IntrospectionResponse.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/common/class-use/IdType.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/common/class-use/Id.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/common/class-use/Holder.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/common/class-use/HasParamName.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/common/class-use/GrantType.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/common/class-use/Display.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/common/class-use/AuthorizationMethod.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/common/class-use/AuthenticationMethod.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/configuration/class-use/AppConfiguration.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/configuration/class-use/Fido2Configuration.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/configuration/class-use/CorsConfigurationFilter.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/configuration/class-use/ConfigurationResponseClaim.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/configuration/class-use/Configuration.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/configuration/class-use/ClientAuthenticationFilter.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/configuration/class-use/BaseFilter.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/configuration/class-use/AuthenticationProtectionConfiguration.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/configuration/class-use/AuthenticationFilter.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/crypto/class-use/CryptoProviderFactory.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/crypto/class-use/AbstractCryptoProvider.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/crypto/class-use/Certificate.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/crypto/class-use/PublicKey.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/crypto/class-use/PrivateKey.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/crypto/class-use/OxElevenCryptoProvider.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/crypto/class-use/OxAuthCryptoProvider.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/crypto/class-use/KeyFactory.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/crypto/class-use/Key.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/crypto/binding/class-use/TokenBindingType.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/crypto/binding/class-use/TokenBindingStream.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/crypto/binding/class-use/TokenBindingParseException.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/crypto/binding/class-use/TokenBindingMessageParser.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/crypto/binding/class-use/TokenBindingMessage.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/crypto/binding/class-use/TokenBindingKeyParameters.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/crypto/binding/class-use/TokenBindingID.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/crypto/binding/class-use/TokenBindingExtensionType.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/crypto/binding/class-use/TokenBindingExtension.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/crypto/binding/class-use/TokenBinding.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/crypto/encryption/class-use/KeyEncryptionAlgorithm.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/crypto/encryption/class-use/BlockEncryptionAlgorithm.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/crypto/signature/class-use/ECDSAKeyFactory.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/crypto/signature/class-use/Signer.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/crypto/signature/class-use/SignatureAlgorithm.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/crypto/signature/class-use/RSAPublicKey.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/crypto/signature/class-use/RSAPrivateKey.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/crypto/signature/class-use/RSAKeyFactory.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/crypto/signature/class-use/ECEllipticCurve.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/crypto/signature/class-use/ECDSAPublicKey.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/crypto/signature/class-use/ECDSAPrivateKey.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/crypto/signature/class-use/AlgorithmFamily.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/crypto/signature/class-use/AbstractSigner.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/discovery/class-use/WebFingerParam.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/discovery/class-use/WebFingerLink.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/discovery/class-use/OAuth2Discovery.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/error/class-use/IErrorType.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/error/class-use/ErrorHandlingMethod.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/exception/class-use/SignatureException.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/exception/class-use/InvalidParameterException.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/exception/class-use/InvalidJwtException.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/exception/class-use/InvalidJweException.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/exception/class-use/InvalidClaimException.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/fido/u2f/class-use/U2fErrorResponseType.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/fido/u2f/class-use/U2fConstants.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/fido/u2f/class-use/U2fConfiguration.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/fido/u2f/class-use/DeviceRegistrationStatus.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/fido/u2f/exception/class-use/RegistrationNotAllowed.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/fido/u2f/exception/class-use/BadInputException.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/fido/u2f/message/class-use/RawRegisterResponse.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/fido/u2f/message/class-use/RawAuthenticateResponse.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/fido/u2f/protocol/class-use/RegisterStatus.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/fido/u2f/protocol/class-use/RegisterResponse.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/fido/u2f/protocol/class-use/RegisterRequestMessage.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/fido/u2f/protocol/class-use/RegisterRequest.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/fido/u2f/protocol/class-use/DeviceData.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/fido/u2f/protocol/class-use/ClientData.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/fido/u2f/protocol/class-use/AuthenticateStatus.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/fido/u2f/protocol/class-use/AuthenticateResponse.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/fido/u2f/protocol/class-use/AuthenticateRequestMessage.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/fido/u2f/protocol/class-use/AuthenticateRequest.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/gluu/class-use/GluuErrorResponseType.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/gluu/class-use/GluuConfiguration.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/jwe/class-use/KeyDerivationFunction.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/jwe/class-use/JweEncrypterImpl.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/jwe/class-use/JweEncrypter.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/jwe/class-use/JweDecrypterImpl.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/jwe/class-use/JweDecrypter.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/jwe/class-use/Jwe.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/jwe/class-use/AbstractJweEncrypter.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/jwe/class-use/AbstractJweDecrypter.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/jwk/class-use/Use.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/jwk/class-use/KeyType.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/jwk/class-use/JWKParameter.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/jwk/class-use/JSONWebKeySet.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/jwk/class-use/JSONWebKey.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/jwk/class-use/Algorithm.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/jws/class-use/ECDSASigner.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/jws/class-use/RSASigner.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/jws/class-use/PlainTextSignature.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/jws/class-use/JwsSigner.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/jws/class-use/HMACSigner.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/jws/class-use/AbstractJwsSigner.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/jwt/class-use/PureJwt.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/jwt/class-use/JwtType.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/jwt/class-use/JwtSubClaimObject.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/jwt/class-use/JwtStateClaimName.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/jwt/class-use/JwtHeaderName.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/jwt/class-use/JwtHeader.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/jwt/class-use/JwtClaims.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/jwt/class-use/JwtClaimSet.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/jwt/class-use/JwtClaimName.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/jwt/class-use/Jwt.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/register/class-use/RegisterRequestParam.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/register/class-use/RegisterResponseParam.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/register/class-use/RegisterErrorResponseType.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/register/class-use/ApplicationType.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/session/class-use/EndSessionResponseParam.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/session/class-use/EndSessionRequestParam.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/session/class-use/EndSessionErrorResponseType.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/token/class-use/TokenRevocationRequestParam.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/token/class-use/TokenRevocationErrorResponseType.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/token/class-use/TokenErrorResponseType.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/token/class-use/JsonWebResponse.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/token/class-use/ClientAssertionType.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/uma/class-use/UmaTokenResponse.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/uma/class-use/UmaScopeType.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/uma/class-use/UmaScopeDescription.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/uma/class-use/UmaResourceWithId.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/uma/class-use/UmaResourceResponse.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/uma/class-use/UmaResource.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/uma/class-use/UmaPermissionList.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/uma/class-use/UmaPermission.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/uma/class-use/UmaNeedInfoResponse.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/uma/class-use/UmaMetadata.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/uma/class-use/UmaErrorResponseType.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/uma/class-use/UmaConstants.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/uma/class-use/RptProfiles.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/uma/class-use/RptIntrospectionResponse.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/uma/class-use/RPTResponse.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/uma/class-use/PermissionTicket.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/uma/class-use/JsonLogicNodeParser.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/uma/class-use/JsonLogicNode.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/uma/class-use/JsonLogic.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/uma/class-use/ClaimTokenFormatType.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/uma/persistence/class-use/UmaResource.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/uma/persistence/class-use/UmaPermission.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/uma/wrapper/class-use/Token.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/userinfo/class-use/UserInfoErrorResponseType.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/userinfo/class-use/Schema.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/util/class-use/Util.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/util/class-use/URLPatternList.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/util/class-use/SubjectIdentifierGenerator.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/util/class-use/StringUtils.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/util/class-use/SecurityProviderUtility.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/util/class-use/Pair.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/util/class-use/LocaleUtil.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/util/class-use/JwtUtil.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/util/class-use/HashUtil.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/util/class-use/CertUtils.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/util/class-use/ByteUtils.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/util/class-use/Base64Util.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/authorize/package-use.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/common/package-use.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/configuration/package-use.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/crypto/package-use.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/crypto/binding/package-use.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/crypto/encryption/package-use.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/crypto/signature/package-use.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/discovery/package-use.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/error/package-use.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/exception/package-use.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/fido/u2f/package-use.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/fido/u2f/exception/package-use.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/fido/u2f/message/package-use.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/fido/u2f/protocol/package-use.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/gluu/package-use.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/jwe/package-use.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/jwk/package-use.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/jws/package-use.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/jwt/package-use.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/register/package-use.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/session/package-use.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/token/package-use.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/uma/package-use.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/uma/persistence/package-use.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/uma/wrapper/package-use.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/userinfo/package-use.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/org/gluu/oxauth/model/util/package-use.html...
Building index for all the packages and classes...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/overview-tree.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/index-all.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/deprecated-list.html...
Building index for all classes...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/allclasses-frame.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/allclasses-noframe.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/index.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/overview-summary.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs/help-doc.html...
8 errors
11 warnings
[ERROR] Error while creating javadoc report: 
Exit code: 1 - /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/src/main/java/org/gluu/oxauth/model/common/ScopeType.java:33: warning: empty <p> tag
     * <p>
       ^
/home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/src/main/java/org/gluu/oxauth/model/crypto/binding/TokenBinding.java:9: error: malformed HTML
 *    opaque signature<64..2^16-1>;  Signature over the concatenation
                      ^
/home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/src/main/java/org/gluu/oxauth/model/crypto/binding/TokenBinding.java:9: error: bad use of '>'
 *    opaque signature<64..2^16-1>;  Signature over the concatenation
                                 ^
/home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/src/main/java/org/gluu/oxauth/model/crypto/binding/TokenBinding.java:13: error: malformed HTML
 *    TB_Extension extensions<0..2^16-1>;
                             ^
/home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/src/main/java/org/gluu/oxauth/model/crypto/binding/TokenBinding.java:13: error: bad use of '>'
 *    TB_Extension extensions<0..2^16-1>;
                                       ^
/home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/src/main/java/org/gluu/oxauth/model/crypto/binding/TokenBindingExtension.java:8: error: malformed HTML
 *     opaque extension_data<0..2^16-1>;
                            ^
/home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/src/main/java/org/gluu/oxauth/model/crypto/binding/TokenBindingExtension.java:8: error: bad use of '>'
 *     opaque extension_data<0..2^16-1>;
                                      ^
/home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/src/main/java/org/gluu/oxauth/model/crypto/binding/TokenBindingMessage.java:16: error: malformed HTML
 *     TokenBinding tokenbindings<132..2^16-1>;
                                 ^
/home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/src/main/java/org/gluu/oxauth/model/crypto/binding/TokenBindingMessage.java:16: error: bad use of '>'
 *     TokenBinding tokenbindings<132..2^16-1>;
                                             ^
/home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/src/main/java/org/gluu/oxauth/model/fido/u2f/message/RawAuthenticateResponse.java:37: warning: no @return
	public byte getUserPresence() {
	            ^
/home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/src/main/java/org/gluu/oxauth/model/fido/u2f/message/RawAuthenticateResponse.java:45: warning: no @return
	public long getCounter() {
	            ^
/home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/src/main/java/org/gluu/oxauth/model/fido/u2f/message/RawAuthenticateResponse.java:52: warning: no @return
	public byte[] getSignature() {
	              ^
/home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/src/main/java/org/gluu/oxauth/model/jwt/JwtHeader.java:44: warning: no @return
    public JwtHeader setType(JwtType type) {
                     ^
/home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/src/main/java/org/gluu/oxauth/model/jwt/JwtHeader.java:63: warning: no @return
    public JwtHeader setAlgorithm(SignatureAlgorithm algorithm) {
                     ^
/home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/src/main/java/org/gluu/oxauth/model/jwt/JwtHeader.java:77: warning: no @return
    public JwtHeader setAlgorithm(KeyEncryptionAlgorithm algorithm) {
                     ^
/home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/src/main/java/org/gluu/oxauth/model/jwt/JwtHeader.java:96: warning: no @return
    public JwtHeader setKeyId(String keyId) {
                     ^
/home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/src/main/java/org/gluu/oxauth/model/uma/UmaNeedInfoResponse.java:66: warning: no @param for clientId
    public String buildClaimsGatheringUrl(String clientId, String claimsRedirectUri) {
                  ^
/home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/src/main/java/org/gluu/oxauth/model/uma/UmaNeedInfoResponse.java:66: warning: no @param for claimsRedirectUri
    public String buildClaimsGatheringUrl(String clientId, String claimsRedirectUri) {
                  ^
/home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/src/main/java/org/gluu/oxauth/model/util/Util.java:215: warning: no description for @return
     * @return
       ^

Command line was: /opt/java/jdk1.8.0_221/jre/../bin/javadoc @options @packages

Refer to the generated Javadoc files in '/home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs' dir.

org.apache.maven.reporting.MavenReportException: 
Exit code: 1 - /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/src/main/java/org/gluu/oxauth/model/common/ScopeType.java:33: warning: empty <p> tag
     * <p>
       ^
/home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/src/main/java/org/gluu/oxauth/model/crypto/binding/TokenBinding.java:9: error: malformed HTML
 *    opaque signature<64..2^16-1>;  Signature over the concatenation
                      ^
/home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/src/main/java/org/gluu/oxauth/model/crypto/binding/TokenBinding.java:9: error: bad use of '>'
 *    opaque signature<64..2^16-1>;  Signature over the concatenation
                                 ^
/home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/src/main/java/org/gluu/oxauth/model/crypto/binding/TokenBinding.java:13: error: malformed HTML
 *    TB_Extension extensions<0..2^16-1>;
                             ^
/home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/src/main/java/org/gluu/oxauth/model/crypto/binding/TokenBinding.java:13: error: bad use of '>'
 *    TB_Extension extensions<0..2^16-1>;
                                       ^
/home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/src/main/java/org/gluu/oxauth/model/crypto/binding/TokenBindingExtension.java:8: error: malformed HTML
 *     opaque extension_data<0..2^16-1>;
                            ^
/home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/src/main/java/org/gluu/oxauth/model/crypto/binding/TokenBindingExtension.java:8: error: bad use of '>'
 *     opaque extension_data<0..2^16-1>;
                                      ^
/home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/src/main/java/org/gluu/oxauth/model/crypto/binding/TokenBindingMessage.java:16: error: malformed HTML
 *     TokenBinding tokenbindings<132..2^16-1>;
                                 ^
/home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/src/main/java/org/gluu/oxauth/model/crypto/binding/TokenBindingMessage.java:16: error: bad use of '>'
 *     TokenBinding tokenbindings<132..2^16-1>;
                                             ^
/home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/src/main/java/org/gluu/oxauth/model/fido/u2f/message/RawAuthenticateResponse.java:37: warning: no @return
	public byte getUserPresence() {
	            ^
/home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/src/main/java/org/gluu/oxauth/model/fido/u2f/message/RawAuthenticateResponse.java:45: warning: no @return
	public long getCounter() {
	            ^
/home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/src/main/java/org/gluu/oxauth/model/fido/u2f/message/RawAuthenticateResponse.java:52: warning: no @return
	public byte[] getSignature() {
	              ^
/home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/src/main/java/org/gluu/oxauth/model/jwt/JwtHeader.java:44: warning: no @return
    public JwtHeader setType(JwtType type) {
                     ^
/home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/src/main/java/org/gluu/oxauth/model/jwt/JwtHeader.java:63: warning: no @return
    public JwtHeader setAlgorithm(SignatureAlgorithm algorithm) {
                     ^
/home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/src/main/java/org/gluu/oxauth/model/jwt/JwtHeader.java:77: warning: no @return
    public JwtHeader setAlgorithm(KeyEncryptionAlgorithm algorithm) {
                     ^
/home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/src/main/java/org/gluu/oxauth/model/jwt/JwtHeader.java:96: warning: no @return
    public JwtHeader setKeyId(String keyId) {
                     ^
/home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/src/main/java/org/gluu/oxauth/model/uma/UmaNeedInfoResponse.java:66: warning: no @param for clientId
    public String buildClaimsGatheringUrl(String clientId, String claimsRedirectUri) {
                  ^
/home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/src/main/java/org/gluu/oxauth/model/uma/UmaNeedInfoResponse.java:66: warning: no @param for claimsRedirectUri
    public String buildClaimsGatheringUrl(String clientId, String claimsRedirectUri) {
                  ^
/home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/src/main/java/org/gluu/oxauth/model/util/Util.java:215: warning: no description for @return
     * @return
       ^

Command line was: /opt/java/jdk1.8.0_221/jre/../bin/javadoc @options @packages

Refer to the generated Javadoc files in '/home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Model/target/site/apidocs' dir.

	at org.apache.maven.plugins.javadoc.AbstractJavadocMojo.executeJavadocCommandLine(AbstractJavadocMojo.java:5298)
	at org.apache.maven.plugins.javadoc.AbstractJavadocMojo.executeReport(AbstractJavadocMojo.java:2134)
	at org.apache.maven.plugins.javadoc.JavadocReport.generate(JavadocReport.java:134)
	at org.apache.maven.plugins.javadoc.JavadocReport.doExecute(JavadocReport.java:329)
	at org.apache.maven.plugins.javadoc.AbstractJavadocMojo.execute(AbstractJavadocMojo.java:1912)
	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
	at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
[INFO] 
[INFO] --- maven-site-plugin:2.1.1:site (default-site) @ oxauth-model ---
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Persistence model 4.1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ oxauth-persistence-model ---
[INFO] Deleting /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/persistence-model/target
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ oxauth-persistence-model ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ oxauth-persistence-model ---
[INFO] Compiling 9 source files to /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/persistence-model/target/classes
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ oxauth-persistence-model ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ oxauth-persistence-model ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ oxauth-persistence-model ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/persistence-model/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ oxauth-persistence-model ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-surefire-plugin:2.19.1:test (default-test) @ oxauth-persistence-model ---
[INFO] Tests are skipped.
[INFO] 
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ oxauth-persistence-model ---
[INFO] Building jar: /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/persistence-model/target/oxauth-persistence-model.jar
[INFO] 
[INFO] --- maven-jar-plugin:2.4:test-jar (default) @ oxauth-persistence-model ---
[WARNING] JAR will be empty - no content was marked for inclusion!
[INFO] Building jar: /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/persistence-model/target/oxauth-persistence-model-tests.jar
[INFO] 
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ oxauth-persistence-model ---
[INFO] Installing /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/persistence-model/target/oxauth-persistence-model.jar to /var/www/html/maven/org/gluu/oxauth-persistence-model/4.1.0-SNAPSHOT/oxauth-persistence-model-4.1.0-SNAPSHOT.jar
[INFO] Installing /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/persistence-model/pom.xml to /var/www/html/maven/org/gluu/oxauth-persistence-model/4.1.0-SNAPSHOT/oxauth-persistence-model-4.1.0-SNAPSHOT.pom
[INFO] Installing /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/persistence-model/target/oxauth-persistence-model-tests.jar to /var/www/html/maven/org/gluu/oxauth-persistence-model/4.1.0-SNAPSHOT/oxauth-persistence-model-4.1.0-SNAPSHOT-tests.jar
[INFO] 
[INFO] --- findbugs-maven-plugin:3.0.4:findbugs (default-cli) @ oxauth-persistence-model ---
[INFO] Fork Value is true
     [java] Warnings generated: 3
[INFO] Done FindBugs Analysis....
[INFO] 
[INFO] >>> maven-javadoc-plugin:3.0.1:javadoc (default-cli) > generate-sources @ oxauth-persistence-model >>>
[INFO] 
[INFO] <<< maven-javadoc-plugin:3.0.1:javadoc (default-cli) < generate-sources @ oxauth-persistence-model <<<
[INFO] 
[INFO] --- maven-javadoc-plugin:3.0.1:javadoc (default-cli) @ oxauth-persistence-model ---
[INFO] 
Loading source files for package org.oxauth.persistence.model...
Loading source files for package org.oxauth.persistence.model.base...
Loading source files for package org.oxauth.persistence.model.configuration...
Constructing Javadoc information...
Standard Doclet version 1.8.0_221
Building tree for all the packages and classes...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/persistence-model/target/site/apidocs/org/oxauth/persistence/model/ClientAttributes.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/persistence-model/target/site/apidocs/org/oxauth/persistence/model/PairwiseIdentifier.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/persistence-model/target/site/apidocs/org/oxauth/persistence/model/Scope.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/persistence-model/target/site/apidocs/org/oxauth/persistence/model/SectorIdentifier.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/persistence-model/target/site/apidocs/org/oxauth/persistence/model/base/Entry.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/persistence-model/target/site/apidocs/org/oxauth/persistence/model/configuration/CustomProperty.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/persistence-model/target/site/apidocs/org/oxauth/persistence/model/configuration/GluuConfiguration.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/persistence-model/target/site/apidocs/org/oxauth/persistence/model/configuration/InumEntry.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/persistence-model/target/site/apidocs/org/oxauth/persistence/model/configuration/oxIDPAuthConf.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/persistence-model/target/site/apidocs/overview-frame.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/persistence-model/target/site/apidocs/org/oxauth/persistence/model/package-frame.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/persistence-model/target/site/apidocs/org/oxauth/persistence/model/package-summary.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/persistence-model/target/site/apidocs/org/oxauth/persistence/model/package-tree.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/persistence-model/target/site/apidocs/org/oxauth/persistence/model/base/package-frame.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/persistence-model/target/site/apidocs/org/oxauth/persistence/model/base/package-summary.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/persistence-model/target/site/apidocs/org/oxauth/persistence/model/base/package-tree.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/persistence-model/target/site/apidocs/org/oxauth/persistence/model/configuration/package-frame.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/persistence-model/target/site/apidocs/org/oxauth/persistence/model/configuration/package-summary.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/persistence-model/target/site/apidocs/org/oxauth/persistence/model/configuration/package-tree.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/persistence-model/target/site/apidocs/constant-values.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/persistence-model/target/site/apidocs/serialized-form.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/persistence-model/target/site/apidocs/org/oxauth/persistence/model/class-use/Scope.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/persistence-model/target/site/apidocs/org/oxauth/persistence/model/class-use/ClientAttributes.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/persistence-model/target/site/apidocs/org/oxauth/persistence/model/class-use/SectorIdentifier.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/persistence-model/target/site/apidocs/org/oxauth/persistence/model/class-use/PairwiseIdentifier.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/persistence-model/target/site/apidocs/org/oxauth/persistence/model/base/class-use/Entry.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/persistence-model/target/site/apidocs/org/oxauth/persistence/model/configuration/class-use/oxIDPAuthConf.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/persistence-model/target/site/apidocs/org/oxauth/persistence/model/configuration/class-use/InumEntry.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/persistence-model/target/site/apidocs/org/oxauth/persistence/model/configuration/class-use/GluuConfiguration.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/persistence-model/target/site/apidocs/org/oxauth/persistence/model/configuration/class-use/CustomProperty.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/persistence-model/target/site/apidocs/org/oxauth/persistence/model/package-use.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/persistence-model/target/site/apidocs/org/oxauth/persistence/model/base/package-use.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/persistence-model/target/site/apidocs/org/oxauth/persistence/model/configuration/package-use.html...
Building index for all the packages and classes...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/persistence-model/target/site/apidocs/overview-tree.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/persistence-model/target/site/apidocs/index-all.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/persistence-model/target/site/apidocs/deprecated-list.html...
Building index for all classes...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/persistence-model/target/site/apidocs/allclasses-frame.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/persistence-model/target/site/apidocs/allclasses-noframe.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/persistence-model/target/site/apidocs/index.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/persistence-model/target/site/apidocs/overview-summary.html...
Generating /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/persistence-model/target/site/apidocs/help-doc.html...
[INFO] 
[INFO] --- maven-site-plugin:2.1.1:site (default-site) @ oxauth-persistence-model ---
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building oxAuth Client 4.1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ oxauth-client ---
[INFO] Deleting /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Client/target
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ oxauth-client ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Client/src/main/resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ oxauth-client ---
[INFO] Compiling 64 source files to /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Client/target/classes
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ oxauth-client ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Client/src/main/resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ oxauth-client ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ oxauth-client ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 17 resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ oxauth-client ---
[INFO] Compiling 156 source files to /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Client/target/test-classes
[WARNING] /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Client/src/test/java/org/gluu/oxauth/ws/rs/WebKeysTest.java:[15,24] X509CertImpl is internal proprietary API and may be removed in a future release
[WARNING] /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Client/src/test/java/org/gluu/oxauth/ws/rs/WebKeysTest.java:[15,24] X509CertImpl is internal proprietary API and may be removed in a future release
[WARNING] /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Client/src/test/java/org/gluu/oxauth/ws/rs/WebKeysTest.java:[15,24] X509CertImpl is internal proprietary API and may be removed in a future release
[WARNING] /home/jenkins/.jenkins/jobs/oxAuth_4.1_CB/workspace/Client/src/test/java/org/gluu/oxauth/ws/rs/WebKeysTest.java:[48,35] X509CertImpl is internal proprietary API and may be removed in a future release
[INFO] 
[INFO] --- maven-surefire-plugin:2.19.1:test (default-test) @ oxauth-client ---

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running TestSuite
ERROR StatusLogger No Log4j 2 configuration file found. Using default configuration (logging only errors to the console), or user programmatically provided configurations. Set system property 'log4j2.debug' to show Log4j 2 internal initialization logging. See https://logging.apache.org/log4j/2.x/manual/configuration.html for instructions on how to configure Log4j 2
Invoked init test suite method 

#######################################################
TEST: OpenID Connect Discovery
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
GET /.well-known/webfinger?resource=acct%3Atest_user%40jenkins-cb.gluu.org&rel=http%3A%2F%2Fopenid.net%2Fspecs%2Fconnect%2F1.0%2Fissuer HTTP/1.1
Host: jenkins-cb.gluu.org

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Connection: Keep-Alive
Content-Length: 187
Content-Type: application/jrd+json;charset=iso-8859-1
Date: Thu, 05 Dec 2019 07:10:14 GMT
Keep-Alive: timeout=5, max=100
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "subject": "acct:test_user@jenkins-cb.gluu.org",
    "links": [{
        "rel": "http://openid.net/specs/connect/1.0/issuer",
        "href": "https://jenkins-cb.gluu.org"
    }]
}


OpenID Connect Configuration
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
GET /.well-known/openid-configuration HTTP/1.1
Host: jenkins-cb.gluu.org

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Connection: Keep-Alive
Content-Length: 5934
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:10:14 GMT
Keep-Alive: timeout=5, max=100
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
  "request_parameter_supported" : true,
  "token_revocation_endpoint" : "https://jenkins-cb.gluu.org/oxauth/restv1/revoke",
  "introspection_endpoint" : "https://jenkins-cb.gluu.org/oxauth/restv1/introspection",
  "claims_parameter_supported" : true,
  "check_session_iframe" : "https://jenkins-cb.gluu.org/oxauth/opiframe.htm",
  "scopes_supported" : [ "https://jenkins-cb.gluu.org/oxauth/restv1/uma/scopes/scim_access", "address", "test", "clientinfo", "user_name", "openid", "profile", "uma_protection", "https://jenkins-cb.gluu.org/oxauth/restv1/uma/scopes/passport_access", "http://photoz.example.com/dev/scopes/view", "work_phone", "permission", "http://photoz.example.com/dev/scopes/all", "modify", "oxtrust-api-read", "oxtrust-api-write", "phone", "mobile_phone", "oxd", "org_name", "super_gluu_ro_session", "email" ],
  "issuer" : "https://jenkins-cb.gluu.org",
  "acr_values_supported" : [ "simple_password_auth", "basic_lock", "basic" ],
  "userinfo_encryption_enc_values_supported" : [ "RSA1_5", "RSA-OAEP", "A128KW", "A256KW" ],
  "id_token_encryption_enc_values_supported" : [ "A128CBC+HS256", "A256CBC+HS512", "A128GCM", "A256GCM" ],
  "authorization_endpoint" : "https://jenkins-cb.gluu.org/oxauth/restv1/authorize",
  "service_documentation" : "http://gluu.org/docs",
  "request_object_encryption_enc_values_supported" : [ "A128CBC+HS256", "A256CBC+HS512", "A128GCM", "A256GCM" ],
  "display_values_supported" : [ "page", "popup" ],
  "id_generation_endpoint" : "https://jenkins-cb.gluu.org/oxauth/restv1/id",
  "userinfo_signing_alg_values_supported" : [ "HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "ES256", "ES384", "ES512" ],
  "claims_supported" : [ "oxAuthRedirectURI", "street_address", "country", "zoneinfo", "birthdate", "gender", "user_name", "formatted", "oxAuthIdTokenSignedResponseAlg", "oxAuthScope", "work_phone", "phone_mobile_number", "preferred_username", "locale", "inum", "oxAuthAppType", "updated_at", "nickname", "org_name", "member_of", "email", "website", "email_verified", "profile", "locality", "phone_number_verified", "given_name", "middle_name", "picture", "name", "phone_number", "postal_code", "region", "family_name" ],
  "scope_to_claims_mapping" : [ {
    "profile" : [ "name", "family_name", "given_name", "middle_name", "nickname", "preferred_username", "profile", "picture", "website", "gender", "birthdate", "zoneinfo", "locale", "updated_at" ]
  }, {
    "clientinfo" : [ "name", "inum", "oxAuthAppType", "oxAuthIdTokenSignedResponseAlg", "oxAuthRedirectURI", "oxAuthScope" ]
  }, {
    "user_name" : [ "user_name" ]
  }, {
    "https://jenkins-cb.gluu.org/oxauth/restv1/uma/scopes/passport_access" : [ ]
  }, {
    "phone" : [ "phone_number_verified", "phone_number" ]
  }, {
    "oxd" : [ ]
  }, {
    "https://jenkins-cb.gluu.org/oxauth/restv1/uma/scopes/scim_access" : [ ]
  }, {
    "http://photoz.example.com/dev/scopes/view" : [ ]
  }, {
    "address" : [ "formatted", "postal_code", "street_address", "locality", "country", "region" ]
  }, {
    "oxtrust-api-read" : [ ]
  }, {
    "org_name" : [ "org_name" ]
  }, {
    "modify" : [ ]
  }, {
    "work_phone" : [ "work_phone" ]
  }, {
    "test" : [ "member_of" ]
  }, {
    "permission" : [ ]
  }, {
    "email" : [ "email_verified", "email" ]
  }, {
    "mobile_phone" : [ "phone_mobile_number" ]
  }, {
    "oxtrust-api-write" : [ ]
  }, {
    "uma_protection" : [ ]
  }, {
    "openid" : [ ]
  }, {
    "super_gluu_ro_session" : [ ]
  }, {
    "http://photoz.example.com/dev/scopes/all" : [ ]
  } ],
  "claim_types_supported" : [ "normal" ],
  "op_policy_uri" : "http://ox.gluu.org/doku.php?id=oxauth:policy",
  "token_endpoint_auth_methods_supported" : [ "client_secret_basic", "client_secret_post", "client_secret_jwt", "private_key_jwt" ],
  "tls_client_certificate_bound_access_tokens" : true,
  "response_modes_supported" : [ "fragment", "query", "form_post" ],
  "token_endpoint" : "https://jenkins-cb.gluu.org/oxauth/restv1/token",
  "response_types_supported" : [ "code", "code token id_token", "token", "code token", "id_token", "code id_token", "token id_token" ],
  "request_uri_parameter_supported" : true,
  "userinfo_encryption_alg_values_supported" : [ "RSA1_5", "RSA-OAEP", "A128KW", "A256KW" ],
  "grant_types_supported" : [ "client_credentials", "refresh_token", "authorization_code", "password", "urn:ietf:params:oauth:grant-type:uma-ticket", "implicit" ],
  "end_session_endpoint" : "https://jenkins-cb.gluu.org/oxauth/restv1/end_session",
  "ui_locales_supported" : [ "en", "es" ],
  "userinfo_endpoint" : "https://jenkins-cb.gluu.org/oxauth/restv1/userinfo",
  "token_endpoint_auth_signing_alg_values_supported" : [ "HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "ES256", "ES384", "ES512" ],
  "op_tos_uri" : "http://ox.gluu.org/doku.php?id=oxauth:tos",
  "frontchannel_logout_supported" : true,
  "auth_level_mapping" : {
    "-1" : [ "simple_password_auth" ],
    "20" : [ "basic_lock" ],
    "10" : [ "basic" ]
  },
  "require_request_uri_registration" : false,
  "id_token_encryption_alg_values_supported" : [ "RSA1_5", "RSA-OAEP", "A128KW", "A256KW" ],
  "jwks_uri" : "https://jenkins-cb.gluu.org/oxauth/restv1/jwks",
  "frontchannel_logout_session_supported" : true,
  "subject_types_supported" : [ "public", "pairwise" ],
  "id_token_signing_alg_values_supported" : [ "none", "HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "ES256", "ES384", "ES512" ],
  "registration_endpoint" : "https://jenkins-cb.gluu.org/oxauth/restv1/register",
  "claims_locales_supported" : [ "en" ],
  "clientinfo_endpoint" : "https://jenkins-cb.gluu.org/oxauth/restv1/clientinfo",
  "request_object_signing_alg_values_supported" : [ "none", "HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "ES256", "ES384", "ES512" ],
  "request_object_encryption_alg_values_supported" : [ "RSA1_5", "RSA-OAEP", "A128KW", "A256KW" ],
  "id_token_token_binding_cnf_values_supported" : [ "tbh" ]
}


#######################################################
TEST: authorizationRequestAlgA128KWEncA128GCM
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "request_object_encryption_alg" : "A128KW",
  "id_token_encrypted_response_alg" : "A128KW",
  "application_type" : "web",
  "id_token_encrypted_response_enc" : "A128GCM",
  "oxIncludeClaimsInIdToken" : "true",
  "userinfo_encrypted_response_enc" : "A128GCM",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "userinfo_encrypted_response_alg" : "A128KW",
  "sector_identifier_uri" : "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "client_name" : "oxAuth test app",
  "request_object_encryption_enc" : "A128GCM",
  "response_types" : [ "token", "id_token" ]
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1927
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:10:14 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "request_object_encryption_alg": "A128KW",
    "application_type": "web",
    "rpt_as_jwt": false,
    "userinfo_encrypted_response_enc": "A128GCM",
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=27e8fdc6-ae65-4bba-ab6b-0192dc8e3992",
    "tls_client_auth_subject_dn": "",
    "userinfo_encrypted_response_alg": "A128KW",
    "registration_access_token": "09e69bd0-4948-4975-8381-c93f20fd2b01",
    "client_id": "27e8fdc6-ae65-4bba-ab6b-0192dc8e3992",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "clientinfo test super_gluu_ro_session org_name work_phone uma_protection phone profile openid permission oxd address user_name email",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "2500f49b-3632-4248-b649-f3222036d7fc",
    "client_id_issued_at": 1575529815,
    "client_name": "oxAuth test app",
    "request_object_encryption_enc": "A128GCM",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": ["implicit"],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "id_token_encrypted_response_alg": "A128KW",
    "client_secret_expires_at": 1575616215,
    "id_token_encrypted_response_enc": "A128GCM",
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": [
        "token",
        "id_token"
    ]
}

authenticateResourceOwnerAndGrantAccess: Cleaning cookies
authenticateResourceOwnerAndGrantAccess: authorizationRequestUrl:https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=token+id_token&client_id=27e8fdc6-ae65-4bba-ab6b-0192dc8e3992&scope=openid+address&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=ad70a071-df44-4042-bd25-db815c3e051a&nonce=f9816636-840d-44ec-8ab9-88916ecb34b9&request=eyJ0eXAiOiJKV1QiLCJlbmMiOiJBMTI4R0NNIiwiYWxnIjoiQTEyOEtXIn0.timAtctKxBQx8IyzSHq35OuFc4XCzSW_.Q3ors_k2vBnvpx7g.R6Fom9NFZ1jcDcS4y-jAfNKdlc2fLHR-rpNVGm2CRNqrSmXizOdhO0f8UmODk2_iXRhjDBlU7NGhnD1Jj4HG3AdV0DNJkzeRaMIqigXMmH_Y0mw5qzGRMmAZGtPhcuihMp7Kr0Z9jbrKTKC3-3EfissjizCh6V42GvqesmmW-2g-bRNaOD13JcNnCsLEVqJ4WPMcVgLHjlookSLJy9ezdHy0yzbBeC4XBWqYdOGagLPs3bRTV995S4odRyux-117KeU66qjI4znBGCA9xSPPjZYKWBJjfdjd9jZIrpF6NvYIGqPyJGUFBw1eNr4XdShTCZL0YCnZJ1RGRlUSQsopqEXsuHPGmFAV7jjUD6Zj2IG7b5ZrUe0Q6pyhm0o8QqyT3EhkVBgtO4n1Cs76i368D5pt5zekIj8axMla4K_55xbXCRiPzCMpsAbdTN2LUdUTBIFP3BkoFOrK6AoyWhrvj7vYrBcvG98a1MxbgiDbrAyG94p7_E-1jyM1SF57rLFG-5HD5NYaCu-OpC-uHhrd7U1MnxT0ZPSgm3Nj31jnyV9j13sZem0beMrBaXgyDACNvaxz0-GLF_3ASXUV8x2MkKVay-IzkZ9Szc9Aec5ecWaiel3s_8uzOm45U2EfXBv9MF9bkecnMYvojVhUhcDNDi84qsyTvuMsa1nCgGF25MXApz8JRuzDkxepmc_xOpSDTnpXFqGkWH7muCjt0B8m8YmZk6baSAr7Z83a3TJJRPv11g5cv7GWku0zU4xTIUpTeObG4Xbs9y2vfdypCv6TOfSu5swe3DqO4VZvVicHhFYu6jY2zmd6a6580EyK04Jaj6aIzuELlPl-M_WoXajAah01wknjcg.YIxKeD4Alom1Y7IosnLNAQ
authenticateResourceOwnerAndGrantAccess: sessionState:53ad1a8eddca884662e8c1802bc7442734872579b4015572a5afbf651e61698f.0f18ea0b-c228-4689-8dc0-5abd645d1cd5
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=token+id_token&client_id=27e8fdc6-ae65-4bba-ab6b-0192dc8e3992&scope=openid+address&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=ad70a071-df44-4042-bd25-db815c3e051a&nonce=f9816636-840d-44ec-8ab9-88916ecb34b9&request=eyJ0eXAiOiJKV1QiLCJlbmMiOiJBMTI4R0NNIiwiYWxnIjoiQTEyOEtXIn0.timAtctKxBQx8IyzSHq35OuFc4XCzSW_.Q3ors_k2vBnvpx7g.R6Fom9NFZ1jcDcS4y-jAfNKdlc2fLHR-rpNVGm2CRNqrSmXizOdhO0f8UmODk2_iXRhjDBlU7NGhnD1Jj4HG3AdV0DNJkzeRaMIqigXMmH_Y0mw5qzGRMmAZGtPhcuihMp7Kr0Z9jbrKTKC3-3EfissjizCh6V42GvqesmmW-2g-bRNaOD13JcNnCsLEVqJ4WPMcVgLHjlookSLJy9ezdHy0yzbBeC4XBWqYdOGagLPs3bRTV995S4odRyux-117KeU66qjI4znBGCA9xSPPjZYKWBJjfdjd9jZIrpF6NvYIGqPyJGUFBw1eNr4XdShTCZL0YCnZJ1RGRlUSQsopqEXsuHPGmFAV7jjUD6Zj2IG7b5ZrUe0Q6pyhm0o8QqyT3EhkVBgtO4n1Cs76i368D5pt5zekIj8axMla4K_55xbXCRiPzCMpsAbdTN2LUdUTBIFP3BkoFOrK6AoyWhrvj7vYrBcvG98a1MxbgiDbrAyG94p7_E-1jyM1SF57rLFG-5HD5NYaCu-OpC-uHhrd7U1MnxT0ZPSgm3Nj31jnyV9j13sZem0beMrBaXgyDACNvaxz0-GLF_3ASXUV8x2MkKVay-IzkZ9Szc9Aec5ecWaiel3s_8uzOm45U2EfXBv9MF9bkecnMYvojVhUhcDNDi84qsyTvuMsa1nCgGF25MXApz8JRuzDkxepmc_xOpSDTnpXFqGkWH7muCjt0B8m8YmZk6baSAr7Z83a3TJJRPv11g5cv7GWku0zU4xTIUpTeObG4Xbs9y2vfdypCv6TOfSu5swe3DqO4VZvVicHhFYu6jY2zmd6a6580EyK04Jaj6aIzuELlPl-M_WoXajAah01wknjcg.YIxKeD4Alom1Y7IosnLNAQ

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm#access_token=bfd73140-9442-40b9-bc04-38f21194e07c&scope=address+openid&id_token=eyJ0eXAiOiJKV1QiLCJlbmMiOiJBMTI4R0NNIiwiYWxnIjoiQTEyOEtXIn0.B8dE1hEWR-utFxL2Sry3b6imHbVXWXCt.GQwCzjVqSiCfNTaJ.D7RxWvW-qOkCe0N1_2_8amcXtgrt69DXXxXJTvaM-mY7UTUzPBfquzNjdklXI_AkAjOGM2ESI8QbBKIO7P3r1hBOk_7vHePNW7O1y0jTfgv_vkdlxz4k42lJO8ClQ8UfFGF7OkNFO5ps9dkVGWvR-89IFDU6aQdaK6uwoCVbJWBTaCgkqBo_LSs6F9SsnL_SKhjk3gjSBcROgcD3Ctx18SJXgxLxMk9sVg20z5yPnYIeMdux_7Se83q8J1_ld_w8L21UkrJOkmAHnSXdDH0HV2Odbdd32ylDTMrmNxlH68DjWwhMs92zOSCtjSBl4XfC7TxF8Tb41ekK1J8XUhv-6Jimvomb9VxAGk5N7CxsDOaUmHfSAUgnepT0-5xfOAcam8FvK4URTvo6FxJNltzVCcZEpcwZnU07NOXEXrbcjJWGlxAGmM1KIP4eW8Lz70CbZee1LCPik5VEhvR98lGXd1mSGQ0mgmUYsTBa_gbUokPUrqt81Ib6mil47U7HpfIP0MWWQXdFmafjBdaefyZ9g6DI-EZWMD6MrDAsNMWU0WpNOmSWEkmirD-P70_Qyctna0FuqUI6H598lQtWGhf9ZB5CJAipTJjb5zTX8o_4ZNYQvIiBx8PPAdFxNY5lmSo1RCkTFqlmPATp9RP2Kqir12ovrkMM6hwFJvvtm8SQbJNmWkorH-OAFD4G1_FoOTj3VtARBSWwdKT-M7kHVAP3j2bx8LjUMRa0uJA6TRdE_JELQDLaF5PWKZYJ6A9DkHlpVwKxhPGXTgDjxn2GaTxQvD9ahAJCO6gTh_5RYyzpEvAm1hQNE8h5AOB7PMjnbbwalZ2ZsApTCzxWoSqHrg3fN7cLqJCDFndiA6g6xXV5WGpEppp-S6v4RzU2i9IuTvtFmc65692ZCQ.eWxkICLz6ww2cRQrAevrLw&session_id=bdfbaa5f-652e-4639-97ca-d6d9a7c18962&state=ad70a071-df44-4042-bd25-db815c3e051a&token_type=bearer&session_state=53ad1a8eddca884662e8c1802bc7442734872579b4015572a5afbf651e61698f.0f18ea0b-c228-4689-8dc0-5abd645d1cd5&expires_in=299

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
GET /oxauth/restv1/userinfo HTTP/1.1
Host: jenkins-cb.gluu.org
Authorization: Bearer bfd73140-9442-40b9-bc04-38f21194e07c

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store, private
Connection: Keep-Alive
Content-Length: 651
Content-Type: application/jwt
Date: Thu, 05 Dec 2019 07:10:22 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

eyJ0eXAiOiJKV1QiLCJlbmMiOiJBMTI4R0NNIiwiYWxnIjoiQTEyOEtXIn0.ZMoW80L63TfpE0by9GzWxpLxZcNDrEe8.2MMRBGfpFJ5HQPA7.Q70LFV6jy4ZXj6FWH2ggCtJdSwLg5rlbb-hrVQfjzvmRGCEnXW9FQ4_Fe0TQ9iXQbCKNSN8TKeZwF-mddX5tOVbGifD8Ya12PCpLHOtcLEuOW7cc_FDKzAOW_Qb9wHTPkIea_2JT4Vds-S7YKkPpwkTLMql_CBhwoGiUFzs_4eEsf-mEIfEVz4gLmvO_tZ48rVfAP7rgSGKpWTy7kxCKB9_FzYzJrZZvSlozQ-Nml_a6fmds5r5P46QwnjZf47GmtNhAbzK8vQnpwt4z3Xcl62KpjEH9Gen6ffD0XD_hoWjfeROM2yKX5wri-hcCMOUbph9XvVAwDGMsglJJHDJ_mKqOrly8wUMIABlsrFH5TkfxMsP32Zn_K-b_-Mqve80V7lY2dIfk-miIN8vCmmL_mTNFq00AjqFPho03WTTO7VGp7yghYwCqnLSYPW3e0wgIXErRbH3vl0rc9W2IIiHgrKrcNjni-wLI_d3DS0uUCz830PoU1vxxpZ1XNRRpPLTJ3TxALw.Lmjg3z1xf_wrpbZAswv0pA

#######################################################
TEST: authorizationRequestAlgA256KWEncA256GCM
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "request_object_encryption_alg" : "A256KW",
  "id_token_encrypted_response_alg" : "A256KW",
  "application_type" : "web",
  "id_token_encrypted_response_enc" : "A256GCM",
  "oxIncludeClaimsInIdToken" : "true",
  "userinfo_encrypted_response_enc" : "A256GCM",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "userinfo_encrypted_response_alg" : "A256KW",
  "sector_identifier_uri" : "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "client_name" : "oxAuth test app",
  "request_object_encryption_enc" : "A256GCM",
  "response_types" : [ "token", "id_token" ]
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1927
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:10:22 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "request_object_encryption_alg": "A256KW",
    "application_type": "web",
    "rpt_as_jwt": false,
    "userinfo_encrypted_response_enc": "A256GCM",
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=9b715423-fb7a-4513-9e3f-2f6baba06933",
    "tls_client_auth_subject_dn": "",
    "userinfo_encrypted_response_alg": "A256KW",
    "registration_access_token": "85a86a77-ebbc-419a-a2de-49e273eb33b1",
    "client_id": "9b715423-fb7a-4513-9e3f-2f6baba06933",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "user_name uma_protection oxd org_name openid phone super_gluu_ro_session test email permission work_phone profile address clientinfo",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "55e27a21-d77c-474c-9395-534c2dac38ea",
    "client_id_issued_at": 1575529822,
    "client_name": "oxAuth test app",
    "request_object_encryption_enc": "A256GCM",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": ["implicit"],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "id_token_encrypted_response_alg": "A256KW",
    "client_secret_expires_at": 1575616222,
    "id_token_encrypted_response_enc": "A256GCM",
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": [
        "token",
        "id_token"
    ]
}

authenticateResourceOwnerAndGrantAccess: Cleaning cookies
authenticateResourceOwnerAndGrantAccess: authorizationRequestUrl:https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=token+id_token&client_id=9b715423-fb7a-4513-9e3f-2f6baba06933&scope=openid+address&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=1224c5f4-5166-41e5-99d0-1fe84fe826e6&nonce=62a1cb9b-1928-4d9f-8b95-9a97e3d25142&request=eyJ0eXAiOiJKV1QiLCJlbmMiOiJBMjU2R0NNIiwiYWxnIjoiQTI1NktXIn0.PiQ_RBd_p_JqJxyfqSe49CPDq6o_OFjLbKRaALtm6orljr4GuLdjoQ.37XWlanH30kx92zl.wIzM7eRxdd0SGZvK3iHYHYIijjB6ZsXmth2PiWmmwRdHGbcB0qAtLq9nYETnOqGKTYDx--Z4UCx5w2Cny6gbiaFF6Hrbcmszod8QhSoq4qaMxWwnhKYz8ILxIkfUk4WG3mshQTNwke_TiUxmUQOGb8BS2KguS74DEfK9Us2nidkBVAFcJ5Sbtz1qL_1vbdwifnyTtQ5NffgZ8IxnIC26dt1EwBNyFLmnp4ebAVEO5LoWtxUKut55xI7QjChhfz8bFAiD6-fx8Bfbax1IMRfuBDOHOMBMKmHdTXt2KrmKQEffo0wsL4MqGR5SIBeFFvNoAx-ilOiGdXst3pclIQFNDH-OhjtZJZsOf8lmSzj3b6DygXPwSGWjEREOs6USWN2Q0UK5As0obbl6SQXEPY4GHHsQ7MqSqQlv9UU9z29NM1M4fOBrxbJojhj-XrwLNDT6fAa4DtAEIdS9_AlJEA1x6Z5MiH_RVnKFVlSnQgyoYFT6PzqQQloGPOsW8wGRIG0zJAgdNiT7uqhvm61BmvhdqZp9tlkCSlhs1dA0QOkVMk0T-6CdHXk3w4eBj2RUXb-nLRGgxDsAJFa2FRKOrTcdkcNY0LjEDW2lzzE4bauQQIshv8VhOS-NcQFWkH7ZFtMOG2z-FslmFEo-LXSSneSzOTVr-E7gBXI447T5uYH-ro7RNp4Eon_cwKjibScBLoNxln0cEhcADiprdd9ageaOQxCZrMmKCA5JkvnWrbPzRHuFEjWOpazdUo92LVQI_NzPV19bXJKOhLn5s04a9SKiI6o7ByjwmiVv1lAbazb-RD8nF169TNUa7J9n5Nm-eNxFDyFS7JnIsgfNxU7BzTJS_xOmyPekow.8HYRaR-gyKPmmLRsar8j8A
authenticateResourceOwnerAndGrantAccess: sessionState:d4088321e919e161294b68c48994f19f0b7c443cd92cc9adf9354a72a6686026.5cc5010f-2d75-444e-9fc4-1c3aabac30d4
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=token+id_token&client_id=9b715423-fb7a-4513-9e3f-2f6baba06933&scope=openid+address&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=1224c5f4-5166-41e5-99d0-1fe84fe826e6&nonce=62a1cb9b-1928-4d9f-8b95-9a97e3d25142&request=eyJ0eXAiOiJKV1QiLCJlbmMiOiJBMjU2R0NNIiwiYWxnIjoiQTI1NktXIn0.PiQ_RBd_p_JqJxyfqSe49CPDq6o_OFjLbKRaALtm6orljr4GuLdjoQ.37XWlanH30kx92zl.wIzM7eRxdd0SGZvK3iHYHYIijjB6ZsXmth2PiWmmwRdHGbcB0qAtLq9nYETnOqGKTYDx--Z4UCx5w2Cny6gbiaFF6Hrbcmszod8QhSoq4qaMxWwnhKYz8ILxIkfUk4WG3mshQTNwke_TiUxmUQOGb8BS2KguS74DEfK9Us2nidkBVAFcJ5Sbtz1qL_1vbdwifnyTtQ5NffgZ8IxnIC26dt1EwBNyFLmnp4ebAVEO5LoWtxUKut55xI7QjChhfz8bFAiD6-fx8Bfbax1IMRfuBDOHOMBMKmHdTXt2KrmKQEffo0wsL4MqGR5SIBeFFvNoAx-ilOiGdXst3pclIQFNDH-OhjtZJZsOf8lmSzj3b6DygXPwSGWjEREOs6USWN2Q0UK5As0obbl6SQXEPY4GHHsQ7MqSqQlv9UU9z29NM1M4fOBrxbJojhj-XrwLNDT6fAa4DtAEIdS9_AlJEA1x6Z5MiH_RVnKFVlSnQgyoYFT6PzqQQloGPOsW8wGRIG0zJAgdNiT7uqhvm61BmvhdqZp9tlkCSlhs1dA0QOkVMk0T-6CdHXk3w4eBj2RUXb-nLRGgxDsAJFa2FRKOrTcdkcNY0LjEDW2lzzE4bauQQIshv8VhOS-NcQFWkH7ZFtMOG2z-FslmFEo-LXSSneSzOTVr-E7gBXI447T5uYH-ro7RNp4Eon_cwKjibScBLoNxln0cEhcADiprdd9ageaOQxCZrMmKCA5JkvnWrbPzRHuFEjWOpazdUo92LVQI_NzPV19bXJKOhLn5s04a9SKiI6o7ByjwmiVv1lAbazb-RD8nF169TNUa7J9n5Nm-eNxFDyFS7JnIsgfNxU7BzTJS_xOmyPekow.8HYRaR-gyKPmmLRsar8j8A

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm#access_token=4218e456-0485-43ba-be49-c319463bb3c6&scope=address+openid&id_token=eyJ0eXAiOiJKV1QiLCJlbmMiOiJBMjU2R0NNIiwiYWxnIjoiQTI1NktXIn0.8R0jj9fvomoakmBe7-NFeZGFf-q5zjmXh3cC4QzeAtaP7o72_8-_dA.A1MJwl0IlMEIfT-W.0uXr8s1pjCa-_4EPiK2km_O28nYzKTBRNuZrVIFjBcUk-WacQZGKmjplWrFtjHAXtMJYdjfURpnPFnfYtDIiq7tDicMNDekH_545CTJSlSLotChBz1ItUX9hixosKnTc5FdZWe4EEPzg4N9JcRZ1UPKaKNEg4QF2RccNN2tUt0fCMGU1wzWasU-ZnJfyGbJW8zFmwRGCdzPPBlTMelJR6bOnNSG9e3WSU3VyC0fEIkASjtc3s2Mx57baspupaH6U16vTRmzexf1SMa7BW4RigfRyOjM2HQJ6DMZY-_M9kc9p-yxWXMP6jc4GJWRT3uxKNtB73YNcCwUc2nn6DJ0gvPzPdCRrcvST9-yUdOMIq7kZhq61nSr4zuPG2-faO-oi7BGzcU5ZNiBQLw-VVxGHTgJwOlNhmiWAqoIRU6v6qfiZPXoyjHdZWRXG2gGwEINLov3xWugcX5IMLkQRIIWEAALjbOQDOeXfzVayyqZA-lAcS8zyOp-Ey2tFcTqqAQVhbFka5yOGScAmiyiUcrElK-wAO2BuoEahc4nAjjbJDg-Kh52PcsPFML0_HMtF7OFTij7i-PufjuT9oDDj4yn5nzGYt7z007KpkDUpI9Lw2cSLDpiooQXbqGkkNSOsptu3DPltaHGFHo6_dZJqNiyCpxE2TfN3zHVH0UBkl1cnKApWZPYlbKpoU_zRI6G5B6RhmQJDfSD144L6B_CP_cUpGDw5VSvsoymmaxZt-S04g4yFPwwnh-XdO4FVF3Ad1aIeeJMr2Jed7IJvPxStUYxsdfWerGnsFPK9xXJiYDXo-8RdABUGBVYUzN2E0NMTfv6AocTTZfXvnkrrTwxS5AocafEHXsssFX5IGd2MGhDhoAeENMRePXpnBDdqBrwO3Z-EdUHtKG0t_Q.6SZIdK3CFAmHKHU9wc5fQA&session_id=83e4c3bf-8ac4-403e-9526-feb38099fdc8&state=1224c5f4-5166-41e5-99d0-1fe84fe826e6&token_type=bearer&session_state=d4088321e919e161294b68c48994f19f0b7c443cd92cc9adf9354a72a6686026.5cc5010f-2d75-444e-9fc4-1c3aabac30d4&expires_in=299

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
GET /oxauth/restv1/userinfo HTTP/1.1
Host: jenkins-cb.gluu.org
Authorization: Bearer 4218e456-0485-43ba-be49-c319463bb3c6

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store, private
Connection: Keep-Alive
Content-Length: 673
Content-Type: application/jwt
Date: Thu, 05 Dec 2019 07:10:27 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

eyJ0eXAiOiJKV1QiLCJlbmMiOiJBMjU2R0NNIiwiYWxnIjoiQTI1NktXIn0.uloZI0Sj3kRwDd8B228joNy0Xbz_VKw7F6X_v_ZLFtqh4z3_r2dG3g.cXduSpjgOgHtGPHC.b0WZ_ctDizi59mwovCEPFdHdlXgOE9wyvUgQ7CE5ID9vqmvMawBoCHSL-c30mkH_cvkkoRSwEC3Cis1b7C8q173Z5NwenVbgWKjEhYWElqHWZmFXJTRXPKz2bPP9rY2EBBAdeXhG7gk0K3GJkK_QIBdNVbl0Ub7966MISsdUcDZi1c6eZxJLdqxcaELgtG_NUrhYL3o7CZa103SpmDHvSXKbw_yxKwZypRJwZgWZp0IDIMK3wMqIesc57Td4oXRXPnK7byZ7k3QZpPhXuICq4OSzaMs6PyMHMcDh_RNW7hbB5Rkh7BBlwpB1_lbb1sgsr-XVZLQdb3vkbrnjLQ648pnLP--WTTKLaeVI-s470ccQu7DTNnEdsGPNGg3O1vTUcpPs7upMkyu-m3RuTPvODMwxzAxEVowuapbQv5PDvvxEjFibNUz_G_-3IrifKGdsSqooK-kzyaQsNqcRD37JLXHJNroBPwpFjDZv61leHW1hGz8NLGgg1-hF1MAOiBK10aGiww.nOeG1eVpYu1KDEr-X0vYeQ

#######################################################
TEST: authorizationRequestAlgRSA15EncA128CBCPLUSHS256
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "request_object_encryption_alg" : "RSA1_5",
  "application_type" : "web",
  "userinfo_encrypted_response_enc" : "A128CBC+HS256",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "userinfo_encrypted_response_alg" : "RSA1_5",
  "sector_identifier_uri" : "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "id_token_encrypted_response_alg" : "RSA1_5",
  "id_token_encrypted_response_enc" : "A128CBC+HS256",
  "oxIncludeClaimsInIdToken" : "true",
  "jwks_uri" : "https://jenkins-cb.gluu.org/oxauth-client/test/resources/jwks.json",
  "client_name" : "oxAuth test app",
  "request_object_encryption_enc" : "A128CBC+HS256",
  "response_types" : [ "token", "id_token" ]
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 2031
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:10:27 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "request_object_encryption_alg": "RSA1_5",
    "application_type": "web",
    "rpt_as_jwt": false,
    "userinfo_encrypted_response_enc": "A128CBC+HS256",
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=591c1fca-11e1-40b0-bbaf-7f7373b4079b",
    "tls_client_auth_subject_dn": "",
    "userinfo_encrypted_response_alg": "RSA1_5",
    "registration_access_token": "13fe8626-55a5-4047-abc1-912ef431cf40",
    "client_id": "591c1fca-11e1-40b0-bbaf-7f7373b4079b",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "super_gluu_ro_session test profile work_phone phone user_name email clientinfo oxd openid uma_protection org_name permission address",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "dc54b679-a59d-4765-a80f-60fa659c35c7",
    "client_id_issued_at": 1575529827,
    "client_name": "oxAuth test app",
    "request_object_encryption_enc": "A128CBC+HS256",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": ["implicit"],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "id_token_encrypted_response_alg": "RSA1_5",
    "client_secret_expires_at": 1575616227,
    "id_token_encrypted_response_enc": "A128CBC+HS256",
    "jwks_uri": "https://jenkins-cb.gluu.org/oxauth-client/test/resources/jwks.json",
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": [
        "token",
        "id_token"
    ]
}

authenticateResourceOwnerAndGrantAccess: Cleaning cookies
authenticateResourceOwnerAndGrantAccess: authorizationRequestUrl:https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=token+id_token&client_id=591c1fca-11e1-40b0-bbaf-7f7373b4079b&scope=openid+address&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=9bb4ee12-715f-4e8e-96e4-6396a134ac0b&nonce=f53d9b88-e1f3-4c97-9822-fdf52c19d7a1&request=eyJraWQiOiIyNmMyNDE4Zi0yZTk5LTRjYTQtYTU4OC1mZDIxZWE4MTBjM2Jfc2lnX3JzYTFfNSIsInR5cCI6IkpXVCIsImVuYyI6IkExMjhDQkMrSFMyNTYiLCJhbGciOiJSU0ExXzUifQ.TuTAJl1rQmtBbm3R9am4gu-WyNUKPSm1yYYNPilmSrQK8qlGmukBRIGOkfnRtupsZB6IAb36JZs7LnVs-PaLZhPA5bbyQrfUH_5kgMBa4dF_OKMoOv6zQqdbmUYRGntgdds5grBC0WCVE6gCZw6DsdwaiYXNZkOVPaxxxiKXVteiIZQ8BN36la0bE-YLzMFm6g5Cn-1iEA215rjw11q4MsMvSfHSvdICXA5tuP-753oZ72dhBtxsAEWQC2KRJ61FZf8q27b8pf8hDwUF87Y1-6JsDbY7FIm9zwyAVrPJiVv0WSKm8OUMFmYBxThywMXH3bXF7-CGfNSypK8iqC-eJg.9JZ2gb5rnpZcPpl9-F9F9A.G-lob-MOA6fVugj-yTah935uZwr4tH9_t0xQcFPGdUFR2tvD7pp8rChxua8YJMlR5T6aIEHIngIlIeYsDjl93aplqoImRP7FQ0QlfBaxREUZVpcvwMVuUGUxU6gFdMJKxkdxIzgRb_m_0IX3z9HkyBIG-HMQ-1n05-mQTczfXMqWfubPKfyTvwQwKszKEdVehMyh4pz3bnut8NLWCH4K9ZUY8PJHvThHbnEVXAY8CZC_YcTJVvyi8RHQ-7QxmNFjWZTJJhtwS1DjOgWhOMqdfFxHvaQSZXTLXz127ug8lmY-dqDTjfWgPZiI8ZEP-u9N_B8OBDmWydmCOKm36ROSzDE9fe5apiYuDYs_a8L6CAYxgcyiCZn4W3mh2o_aHDI3LEIkYICQYalcC9MnvZ3_kVP7_x7p2sUyOsxNR7XIc31pubvugSnMzLvNk2GvujZ9FaGVds63cAVDhAiTJDXsWyJ14e6cMA31GD7AASs5auCov2yuRTTh8vt4_nXrF5oT-sM1uS1z_iVNMaUp05LRbpWmUGurKyYvICi5BqRg6aTjGaElolDHdwKpHBrWM3vm3csN3_umVAZ5ifNgjpRRJ9sMhtXiihqfhGlfyYFQKHrmp-FqXaIKy2kg0p4nTwjFVvwvlJBGim2LMxgSC2rTQxs19vgSvlJj45iqR-dFGlD5POYV_Gl4BCUg3TnsjOpFCsWgYW505Rroriqb4fQnr_vj-dtbTIhPcwLwIFGOvgCd5xsQnuFHe7yjPBc_IQ0jFnpEhayxIkEu9fxiBpVIlLe0rpZbCDEs2mm9KldckW4e30l605zScepCAPckT-4HwbNc3eOF2wHFDZhLlgo-b4YQRWLAHKKMA3j1RVXE6tE.8qmbNbrCugrSVsPIfNXl4Ydwu5GlIvgMze_1CvNdAoc
authenticateResourceOwnerAndGrantAccess: sessionState:b45d19a8970b8423a2fe743f122050240a5f8f6d0d7a4717314db74e70a7e85e.0728faec-f150-49af-8a6a-a1929a902c3f
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=token+id_token&client_id=591c1fca-11e1-40b0-bbaf-7f7373b4079b&scope=openid+address&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=9bb4ee12-715f-4e8e-96e4-6396a134ac0b&nonce=f53d9b88-e1f3-4c97-9822-fdf52c19d7a1&request=eyJraWQiOiIyNmMyNDE4Zi0yZTk5LTRjYTQtYTU4OC1mZDIxZWE4MTBjM2Jfc2lnX3JzYTFfNSIsInR5cCI6IkpXVCIsImVuYyI6IkExMjhDQkMrSFMyNTYiLCJhbGciOiJSU0ExXzUifQ.TuTAJl1rQmtBbm3R9am4gu-WyNUKPSm1yYYNPilmSrQK8qlGmukBRIGOkfnRtupsZB6IAb36JZs7LnVs-PaLZhPA5bbyQrfUH_5kgMBa4dF_OKMoOv6zQqdbmUYRGntgdds5grBC0WCVE6gCZw6DsdwaiYXNZkOVPaxxxiKXVteiIZQ8BN36la0bE-YLzMFm6g5Cn-1iEA215rjw11q4MsMvSfHSvdICXA5tuP-753oZ72dhBtxsAEWQC2KRJ61FZf8q27b8pf8hDwUF87Y1-6JsDbY7FIm9zwyAVrPJiVv0WSKm8OUMFmYBxThywMXH3bXF7-CGfNSypK8iqC-eJg.9JZ2gb5rnpZcPpl9-F9F9A.G-lob-MOA6fVugj-yTah935uZwr4tH9_t0xQcFPGdUFR2tvD7pp8rChxua8YJMlR5T6aIEHIngIlIeYsDjl93aplqoImRP7FQ0QlfBaxREUZVpcvwMVuUGUxU6gFdMJKxkdxIzgRb_m_0IX3z9HkyBIG-HMQ-1n05-mQTczfXMqWfubPKfyTvwQwKszKEdVehMyh4pz3bnut8NLWCH4K9ZUY8PJHvThHbnEVXAY8CZC_YcTJVvyi8RHQ-7QxmNFjWZTJJhtwS1DjOgWhOMqdfFxHvaQSZXTLXz127ug8lmY-dqDTjfWgPZiI8ZEP-u9N_B8OBDmWydmCOKm36ROSzDE9fe5apiYuDYs_a8L6CAYxgcyiCZn4W3mh2o_aHDI3LEIkYICQYalcC9MnvZ3_kVP7_x7p2sUyOsxNR7XIc31pubvugSnMzLvNk2GvujZ9FaGVds63cAVDhAiTJDXsWyJ14e6cMA31GD7AASs5auCov2yuRTTh8vt4_nXrF5oT-sM1uS1z_iVNMaUp05LRbpWmUGurKyYvICi5BqRg6aTjGaElolDHdwKpHBrWM3vm3csN3_umVAZ5ifNgjpRRJ9sMhtXiihqfhGlfyYFQKHrmp-FqXaIKy2kg0p4nTwjFVvwvlJBGim2LMxgSC2rTQxs19vgSvlJj45iqR-dFGlD5POYV_Gl4BCUg3TnsjOpFCsWgYW505Rroriqb4fQnr_vj-dtbTIhPcwLwIFGOvgCd5xsQnuFHe7yjPBc_IQ0jFnpEhayxIkEu9fxiBpVIlLe0rpZbCDEs2mm9KldckW4e30l605zScepCAPckT-4HwbNc3eOF2wHFDZhLlgo-b4YQRWLAHKKMA3j1RVXE6tE.8qmbNbrCugrSVsPIfNXl4Ydwu5GlIvgMze_1CvNdAoc

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm#access_token=a684a1a9-bed6-4744-a0a2-b79ebd6e1d10&scope=address+openid&id_token=eyJraWQiOiJhNDQyZjBlYy03MjM3LTQwYjMtYjdmMy1hNjAzOWY3MGQ5YmQiLCJ0eXAiOiJKV1QiLCJlbmMiOiJBMTI4Q0JDK0hTMjU2IiwiYWxnIjoiUlNBMV81In0.MzUuF9-J1BJwWpU9R0SQegM-U2LiSEK8_kWV1-WtjE_Fyw7lElsmCgytdXKYR9NEazTnmsCgnKavFccijeoolFB3wPi_htHXsQGFPvlAYousLICWlMgkTwaSj26smvT9iHCCQUxPDAYtHjoeYjPsXfHgjtvcMv5dzv8RQaTX6rMWDUVGyBFakqJoPHC09-UYTSRS49-cPD_rQNAS2SqZw77i9g8pkt6JmU2JH7otqLQf18zHBc8dTPiElW6UoIQbHvzgBcyRosubX1j__5r7KzKlEHXbXY6jBksgDG9WuAMCeRtbvL8Be7JXkqcaS6QpqE2Ov_zIkhYKiZRyisi6xA.4vS57ShL8RscQjYD5Oi4Ow.YQ-_ufNKP8r-11Cicpc5oQmmIGaZkHAJY1BuCc4iYx--0AMRmR8pdjV3cSW24VZ1L0cXms95PBZTlrjDW0OcaKJ7_7bMuNwm7cSP_89QWBw58GSNDObSzdYywxGhxpiI8vRDmPWaQczyeD1mQ0yJCjOQuuKHowFCPR1b-MD1s8MJAJplwdiBI3_UFHVrWt2Hva_W3Tzht4V36B7MS9VfFcVoV6hWwB_DvqSI-lL5PqVflFCQaYjDy6OGbrD3MybCtQHrKJYWqgZmgZVRQGCPJEVzST7ALKqdtRsIfAggsY1fbrq4J_wBY_AEhLvZ8kN6V2Gi6N9txFzA2DOuMUv1JgBlXEJDP8OSd6HWeEECPIJtkNRNS__WV5RhJl2hibCKW2esXQjTcpjuiCdKHLDS10MizKl-OGNwV4eQOL6yUc0T09U4Aj1C-cTv64zyKLr7VIgY93DZySqmDuJ6I8wXn92ipBjQWf9rytoNRxhzT462yXu_ceygbFosER0hgioRqhvi0BoT0lfXEtTamC4A08Mnpvavgo32P7zypEM5OMzPficWeZ7t09gyuwI18g0HC2OutQrzXNai2wp12bqeKN3MM6lX0_Pu1U6k0HezPPKzBlXDLCQx9T7bqvsRQXYlLzX5oRcQKBOBlHh3PkJSlYBdFqW4cEfgaJVvBikLj11Bdg_UvXyDB4AgDq1fzEswp-NC2diSDMG8rTdYGao7RmtlkQiQ4XsPnYTz7i4mv-ghCOXnUWhlz3gIdoIcQboEf0F5H7IDlwIYm0fD19MFzYV7mfHIPNttajU8pVNjG8-E0_1nSA-zFHxZHGzFhcbl2Clqv5eHUWP8NU0y9zxoIegp36NkWYJikPsKDFQ64nwHwsWipHfIfF-0trL6nAO3Lp5E4-1aPsZrssREcRLzbw.QHCCT3btSaRfmWAT-zxu8ZArzqkTiYmSQIaKh083els&session_id=32b3bb41-0b0e-4449-bf9a-1b19a671d3b6&state=9bb4ee12-715f-4e8e-96e4-6396a134ac0b&token_type=bearer&session_state=b45d19a8970b8423a2fe743f122050240a5f8f6d0d7a4717314db74e70a7e85e.0728faec-f150-49af-8a6a-a1929a902c3f&expires_in=299

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
GET /oxauth/restv1/userinfo HTTP/1.1
Host: jenkins-cb.gluu.org
Authorization: Bearer a684a1a9-bed6-4744-a0a2-b79ebd6e1d10

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store, private
Connection: Keep-Alive
Content-Length: 1012
Content-Type: application/jwt
Date: Thu, 05 Dec 2019 07:10:32 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

eyJ0eXAiOiJKV1QiLCJlbmMiOiJBMTI4Q0JDK0hTMjU2IiwiYWxnIjoiUlNBMV81In0.gWzc8O8NbmOla1Kex8tXzsfApAk2d36NseY5yWlqWEK3HcjHoxK3PyMALbxMLefez8D6Yjq_Lrt6X9IU02EGOLfFDsNYKSiuE4LJZE5JvZkTliEuM0hvTypUC3EytX77f2MGtVn25AJwmdSnCjbl-m53fPXRK5RV6aBSJJa7gAjzVjx9AVPll_sYVH4ZOVI15uv9XOz8jlDlJ1dDHOC67HxslZHSkUiAWLhlnn0GCCdYywejTbojgYTVPwXppt-znUUxpvM6gbQJXXIjM-SQ45jwGYUMOhnvfggpPz_myHR_8CDzoivg5xjuYIe98hQQJmY6CUIrcdCWA5ZU_VGTaw.Kydddxgq_3-xfYTfhyqqUg.5a0pIH2jzA-pHza9y4a-aeaWvwCZCL57X4RjB2B4aSWl9o2op34T3XBW-1EG2jQUHwnErxxdyWTQbxX8kzuCKXBz6-9KpL5s9OsYpwHn8GLcR42QQICDic8XHRtrVBs51uUKcZkOidipwgfFWKTMow-Oxd56ZuUyJdiRLGQT7F1brCWVsFw-r1jR_OPPT5WJtPKVv_XWocaiDmz8QipVqKTYSocjlDx58bPfq6HsV1E_V0LE3PsdKIX9Cz97HVxTE-l09ggle0VaIrG0t1MKyzwPsNUoArUsx-f74CFcbCkvpCEdDUgWRPcNhSFLXQ7GNcPgLrp9XKke_qcsWHuRYOq2u8ZPCCkzeJ789gRaEm1d1nLs-2S07iv7iYuIXBP5NesX7yYzqURi3m4fqr2SKk4lpfpFiHMKMlXpxygncfiHZXEqtpFMQ8EVBlFTnNLsSOG59ICkvfzBWZ4z8Bc1TslHTXckAuQdtVKY-KNG0R1n7x-c8pVQaVG-a8dsarVw0NEn3bXDJBRKJoa7FdWA8g.tL0DiLXVJ_FNcBYQtvy8BQ3eBXV7ursF1liWbJqTXlA

#######################################################
TEST: authorizationRequestAlgRSA15EncA256CBCPLUSHS512
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "request_object_encryption_alg" : "RSA1_5",
  "application_type" : "web",
  "userinfo_encrypted_response_enc" : "A256CBC+HS512",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "userinfo_encrypted_response_alg" : "RSA1_5",
  "sector_identifier_uri" : "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "id_token_encrypted_response_alg" : "RSA1_5",
  "id_token_encrypted_response_enc" : "A256CBC+HS512",
  "oxIncludeClaimsInIdToken" : "true",
  "jwks_uri" : "https://jenkins-cb.gluu.org/oxauth-client/test/resources/jwks.json",
  "client_name" : "oxAuth test app",
  "request_object_encryption_enc" : "A256CBC+HS512",
  "response_types" : [ "token", "id_token" ]
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 2031
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:10:32 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "request_object_encryption_alg": "RSA1_5",
    "application_type": "web",
    "rpt_as_jwt": false,
    "userinfo_encrypted_response_enc": "A256CBC+HS512",
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=322faae0-9302-4509-906b-56eb2b66101d",
    "tls_client_auth_subject_dn": "",
    "userinfo_encrypted_response_alg": "RSA1_5",
    "registration_access_token": "6bf471d5-249d-4eeb-99c9-5d35f254c7c2",
    "client_id": "322faae0-9302-4509-906b-56eb2b66101d",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "openid user_name address super_gluu_ro_session clientinfo email oxd test uma_protection org_name permission phone work_phone profile",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "f9da4e44-f138-4024-aea3-3c438a82f8a4",
    "client_id_issued_at": 1575529832,
    "client_name": "oxAuth test app",
    "request_object_encryption_enc": "A256CBC+HS512",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": ["implicit"],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "id_token_encrypted_response_alg": "RSA1_5",
    "client_secret_expires_at": 1575616232,
    "id_token_encrypted_response_enc": "A256CBC+HS512",
    "jwks_uri": "https://jenkins-cb.gluu.org/oxauth-client/test/resources/jwks.json",
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": [
        "token",
        "id_token"
    ]
}

authenticateResourceOwnerAndGrantAccess: Cleaning cookies
authenticateResourceOwnerAndGrantAccess: authorizationRequestUrl:https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=token+id_token&client_id=322faae0-9302-4509-906b-56eb2b66101d&scope=openid+address&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=97eaf8e9-73c6-45de-a4b3-990629f0ca9d&nonce=45fcc3de-afb3-4919-8c3b-bb2d04dec051&request=eyJraWQiOiIyNmMyNDE4Zi0yZTk5LTRjYTQtYTU4OC1mZDIxZWE4MTBjM2Jfc2lnX3JzYTFfNSIsInR5cCI6IkpXVCIsImVuYyI6IkEyNTZDQkMrSFM1MTIiLCJhbGciOiJSU0ExXzUifQ.mnFBpfxplQu9-IoFL3R-Gga2Tb6GX90Izn8Y2asdN6x_IoSq8sK-CJCY9GOOiIFnR9Mnc2y6t772yaDfZH8i5FOUDRc3-b8kteYYcFrEnGpzKPNidzWjsqTH4tigxbg7FCHiqE9BO-OoffBFdoWpmpQOao8cQPVBpqUl9Syx8y5zA8YzAUk4ny_4EPnaR-rv3AWhn7Zp5AvTQ7GrT7l4AFYFsUmiBCJuvTRuq3IaTWu9ghCMMik2IpIoIQMEzkeiBh8lSnnLKefAL6ZBWwRqhVewm003Nm2IFfInF_D6fn7zV8GT1KmvHi49tuHsuI1YepKd_nXcClzzVbUzp2fv8Q.9-fKNfEGO8wxoWhqFZi_yg.7pbbLVul5JUAWoyQfXXT8JyX7g0Y3S8-Vt1DJakuoUq3PqU5b5ZPBi9dtlJZwB-G7nVKJtrtnQjxomPZ7pfOY2WvNyJMsqaKlRrCKEljf2IX0-calhxgDUFKuPIF_Tsxtz_hR99CslDe8K7QcELDPk_GZmzC5DAEYtvTgb-Khmap4BPA0e_zZEgZxBvUDTdvkBj1yvqa3KmHWrfw_kJhE5lcOkxi5eEKk18tGH6QNZD1BkeFw9NqS9nyxHfwTkZP1Oy5F6h47-96ipzHhzUgI_wFiX1ZVRcnt_PNXX3MukP11RXc-iX2Z4a9WK8jRRdxx9GHz1ovHkGq5svExYwX_U2luEU2ZkoFLunukmRHA_7QPhL96PFRx_DD2brMndHN044ip-fROojS0XCx9bi54sZKJvCP7xXXJ1ZAFqdAc2W5gMR-m9pnmBlqgXaM8qxTFMfIEvrrKEvPTBzLpvZeu6vs4XBpkKx8hVOnq5cwY2zv3T3JdCdGh3PK9GItaLo8M3ZXRnsmMvdpfaAcMrZPp3r9_XlFixIr88au_FYqID4GkkvSYPh3z6l0A4QrS0LDUCbEoJNFAb5Rm2EU1cW0gmMiWtbIWLvl2OJm99uP6l8FEV5_kEpOgYuSNqtZzzYvTub0XCcgcRsubgcU-eTFwlP5DgORqQ_1Lot8Afuo0fJFDIAGS5Yysp_enNnX3efr4zqLPjiJA4g6x-LGhIUHsUq9i6csXDv9jQZe2_hN1yB-TdNt3VGtROyZhbkQMRPL1slTFFmaDhslFZFK24BOFRVb8A2wj9JwabFGKz3o_gTGPBmYYxIhPHPjMVrzESO3z5yYm_x-dkAslLrqQtyWYHkNbRc1qnX0_nPveWZ-2h4.KS_IslP_ZnhedvEYFC3OFADH3BNMlvR3atjKNmbQRWrrBxjWmPFMH4neRj1WiME1GJFnwRRT6NJE0iEBNAP3Ig
authenticateResourceOwnerAndGrantAccess: sessionState:b51cb403917a17be0628997aca2bf5c28977a8c66a3031f1b95d2ba624e6818c.5dd203b5-b693-47e0-b806-3a0fc2e7ac46
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=token+id_token&client_id=322faae0-9302-4509-906b-56eb2b66101d&scope=openid+address&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=97eaf8e9-73c6-45de-a4b3-990629f0ca9d&nonce=45fcc3de-afb3-4919-8c3b-bb2d04dec051&request=eyJraWQiOiIyNmMyNDE4Zi0yZTk5LTRjYTQtYTU4OC1mZDIxZWE4MTBjM2Jfc2lnX3JzYTFfNSIsInR5cCI6IkpXVCIsImVuYyI6IkEyNTZDQkMrSFM1MTIiLCJhbGciOiJSU0ExXzUifQ.mnFBpfxplQu9-IoFL3R-Gga2Tb6GX90Izn8Y2asdN6x_IoSq8sK-CJCY9GOOiIFnR9Mnc2y6t772yaDfZH8i5FOUDRc3-b8kteYYcFrEnGpzKPNidzWjsqTH4tigxbg7FCHiqE9BO-OoffBFdoWpmpQOao8cQPVBpqUl9Syx8y5zA8YzAUk4ny_4EPnaR-rv3AWhn7Zp5AvTQ7GrT7l4AFYFsUmiBCJuvTRuq3IaTWu9ghCMMik2IpIoIQMEzkeiBh8lSnnLKefAL6ZBWwRqhVewm003Nm2IFfInF_D6fn7zV8GT1KmvHi49tuHsuI1YepKd_nXcClzzVbUzp2fv8Q.9-fKNfEGO8wxoWhqFZi_yg.7pbbLVul5JUAWoyQfXXT8JyX7g0Y3S8-Vt1DJakuoUq3PqU5b5ZPBi9dtlJZwB-G7nVKJtrtnQjxomPZ7pfOY2WvNyJMsqaKlRrCKEljf2IX0-calhxgDUFKuPIF_Tsxtz_hR99CslDe8K7QcELDPk_GZmzC5DAEYtvTgb-Khmap4BPA0e_zZEgZxBvUDTdvkBj1yvqa3KmHWrfw_kJhE5lcOkxi5eEKk18tGH6QNZD1BkeFw9NqS9nyxHfwTkZP1Oy5F6h47-96ipzHhzUgI_wFiX1ZVRcnt_PNXX3MukP11RXc-iX2Z4a9WK8jRRdxx9GHz1ovHkGq5svExYwX_U2luEU2ZkoFLunukmRHA_7QPhL96PFRx_DD2brMndHN044ip-fROojS0XCx9bi54sZKJvCP7xXXJ1ZAFqdAc2W5gMR-m9pnmBlqgXaM8qxTFMfIEvrrKEvPTBzLpvZeu6vs4XBpkKx8hVOnq5cwY2zv3T3JdCdGh3PK9GItaLo8M3ZXRnsmMvdpfaAcMrZPp3r9_XlFixIr88au_FYqID4GkkvSYPh3z6l0A4QrS0LDUCbEoJNFAb5Rm2EU1cW0gmMiWtbIWLvl2OJm99uP6l8FEV5_kEpOgYuSNqtZzzYvTub0XCcgcRsubgcU-eTFwlP5DgORqQ_1Lot8Afuo0fJFDIAGS5Yysp_enNnX3efr4zqLPjiJA4g6x-LGhIUHsUq9i6csXDv9jQZe2_hN1yB-TdNt3VGtROyZhbkQMRPL1slTFFmaDhslFZFK24BOFRVb8A2wj9JwabFGKz3o_gTGPBmYYxIhPHPjMVrzESO3z5yYm_x-dkAslLrqQtyWYHkNbRc1qnX0_nPveWZ-2h4.KS_IslP_ZnhedvEYFC3OFADH3BNMlvR3atjKNmbQRWrrBxjWmPFMH4neRj1WiME1GJFnwRRT6NJE0iEBNAP3Ig

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm#access_token=eac38c09-b9a8-4db8-874b-460c24285556&scope=address+openid&id_token=eyJraWQiOiJhNDQyZjBlYy03MjM3LTQwYjMtYjdmMy1hNjAzOWY3MGQ5YmQiLCJ0eXAiOiJKV1QiLCJlbmMiOiJBMjU2Q0JDK0hTNTEyIiwiYWxnIjoiUlNBMV81In0.iqsRj2VwOX6ouKn5WRMvgK7JLflqWhPgfpHhEYY5UlkAQaz5LGjHe9fXI-BE_RJlJ7ibjsEVYT2aef0J95AiV4v2GyXLVUshZJI7E79WmqLEy2AJ9c5pDpDP2WIADDkdW6oCY8X2reQZNV1GcjT_cFvhj7HSNNZSRnoQa0iW23d2TlsD06dMYfoSau0V34fhF9aGVFCftwnn79mE4Lc754s0iWHtE6JwCZp-ECbfV5uk4So_h7o7UeLCxO_ft8UT82wfzRIZROIpMKJGbGC_zMxhDBDIPULdbFaHlU9dgMa3hi7n97Q5dhk9U-FcB8JndC4laKbSkX52dvK43jKcyg.LMKrggSRCO_Zl1Sg31e9pw.Mzv3Oa3Z9n_-K8oGr9OmOXe--PK94keli_hl9goUU4D4V0vX-1r9AgBQc95-GUzWMrQ4lPdamTAiHA8yiqyvUqCpJ2oofcjbb61QmsnjQrUmj4xwkzpjNHuvK0Ul5-Ag-iTKUoLJwZTKvcgOOAPRVl5fe0s6ZfyLgB0jVWFXH71YOpDtOVyQi2EgGQUCcyz6NXrz6XmOfJybt6wZNGVBHVMCFJh_Q3Go95L_T78VCd3tWgKgGzkTQspTyfwccQV4Eklc4u8ULr6M7WoErkMlS8kdQA8XbNu8aMtMl4TzSerVgykxvbrLSPdPkOTLdidDJKWxaKvkUJLNVUofjWnTjxvqxzkZ7Ct6wSkmLxoFoxzFhMnc_AHOuctIo1S64w8XYVh8h6Gxx77qJ2HU4OcWMgj1RBT86I8J8ViBOpwrRM4Bgzh_Qy2StufGHbZwuzQziblCqqQXgstJtx1wwn9cG95kjyNCRwE5dNAwlVyv8nnv4LL5mU_TQLD5Grt0zh5qqkzDkC34TdCDrKGPPVgSGS_wxR5UT83naYdWbhsWsb0Zcex68frt6Bqbv4BvLtDxrVbNOcnvzuAwPj-dLsNVh-B73IPNnF-fGuoQyLMNVIFWzqQ5TYzrqeg_onGrC2shEZfqxxsAAOH7qMxDTklMKFsQPvdpYKplo0XzF_kq-FJDoS4yIzcpCEPlTziB88x_ncYfN7wlfmaTwic8rncoWU27BIxZGKJXRxV5PyszUkQbIcQ2alYchySLvZAeX6xTqeVyZwWTwNFgug8NIBP3-D_ND-xPUHam0GrI3Ylz0Kk8-lB0iOy-9q6iWRpIDp_Zx_L0Q4-Zy3TtD1Fex1llEefa1YZZtVRkNtnV8XkkGNXA1PtyFluXXgWXp4onAF4ULvhHqR1tYlyeS5Ff2icOrw.XmZb3ONMPCcSJKGKbYLtzFo6vvPOZrM3zoORRojzMFVlPTtxN3O0YCGV3ZtI8ZSZ7X9HHLck18nHBkNRzvnL5Q&session_id=12511381-4294-4db2-9157-6f496cb02ab5&state=97eaf8e9-73c6-45de-a4b3-990629f0ca9d&token_type=bearer&session_state=b51cb403917a17be0628997aca2bf5c28977a8c66a3031f1b95d2ba624e6818c.5dd203b5-b693-47e0-b806-3a0fc2e7ac46&expires_in=299

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
GET /oxauth/restv1/userinfo HTTP/1.1
Host: jenkins-cb.gluu.org
Authorization: Bearer eac38c09-b9a8-4db8-874b-460c24285556

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store, private
Connection: Keep-Alive
Content-Length: 1055
Content-Type: application/jwt
Date: Thu, 05 Dec 2019 07:10:36 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

eyJ0eXAiOiJKV1QiLCJlbmMiOiJBMjU2Q0JDK0hTNTEyIiwiYWxnIjoiUlNBMV81In0.yMP4vzQFnjdvPBXcB8dTcnJOAmamp9TAJuWW6q1nABeUsjmtHQgyfZKjdczWLZGhgRxtv6Yv13E1bQIr9hFJHiinxm0X-Hck4sbLx9Gz7FFDPmHrZQ2oZyNfwiuEyUAmvHFRmrr-pbv7cnY26FS5hicCcu3OdioRBkz13ZPDHtwct0CNuqpZ1BNorqW3jLbQ_xqKPUPj5U5eGh4_NnlPc211D6oOE_g62z_6RwdmQeIDVHawrqjlVnWv-13ioBgnwKfbkeczpKRuy5ZtCJE1aICooXrCgIx0WY0bFfSUHRPZeQ91aWKNqnRAkZHp2uSjl5jS0Jj2h7G0JRelxsoWBg.9b2QYlSrIFLE5wpw-CgnwA.pZxzV58oqxjTY1hsTkfkeaLgmbnoRVD0XONoyIa_YSPuDPawZV_HTpLBqpULwn9DgvxdaIz6Y7IDzON5cxkd61a0iNhVxofrTcpxMOoYjnyefGcegEHNoSxMqRHhcqXmMSWYCDAqxc4o5BZ7YAqISwYN-VCY_yGQGH1nbqH82l_bi1Hvo1NGWWv6t5r56VpGAlu5W5LyFsTywXCZENaHiNgFf4hS-wctm__QEcwmNXiqUEVqTBL67yHVgcn_neLgIpWIKjK3niC74Q-66niExX2agNTV2RqehPBJEl7EXDbx34WC9JLGwYYdMEUGT3Yq5E8zZFb3DaIa0iihoqhpyf0z4AxvA-xhRvVO3T8SJKEOeAVmLU4-l5ht17T_iixwXUyKj_leAlbHnYgx6X8TpAl4oIlc4IlEUgV9NHQbYcQOIgF3KsfLXs3DcJMxgLSjNGIy_1SCiOgaXRpia8vlhhu-aQsD_5MbINBCO2c2Ha9gJxLeXN7llD0C0YonXNzRlp2dcZbbPewSRB4zfs-86g.gACog9R4GTUlbqqmuJOsYxj7lovzAjN6Sb7hcShCBsBU-Q2SGNy4DTXhlKQEHU8bBdJMdXY2T-Ro2_O5KA1wDw

#######################################################
TEST: authorizationRequestAlgRSAOAEPEncA256GCM
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "request_object_encryption_alg" : "RSA-OAEP",
  "application_type" : "web",
  "userinfo_encrypted_response_enc" : "A256GCM",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "userinfo_encrypted_response_alg" : "RSA-OAEP",
  "sector_identifier_uri" : "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "id_token_encrypted_response_alg" : "RSA-OAEP",
  "id_token_encrypted_response_enc" : "A256GCM",
  "oxIncludeClaimsInIdToken" : "true",
  "jwks_uri" : "https://jenkins-cb.gluu.org/oxauth-client/test/resources/jwks.json",
  "client_name" : "oxAuth test app",
  "request_object_encryption_enc" : "A256GCM",
  "response_types" : [ "token", "id_token" ]
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 2019
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:10:36 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "request_object_encryption_alg": "RSA-OAEP",
    "application_type": "web",
    "rpt_as_jwt": false,
    "userinfo_encrypted_response_enc": "A256GCM",
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=8c20d803-107c-4133-b6cc-315acc6418e4",
    "tls_client_auth_subject_dn": "",
    "userinfo_encrypted_response_alg": "RSA-OAEP",
    "registration_access_token": "c5d53155-65ed-4d33-af9d-06c96cbd83e0",
    "client_id": "8c20d803-107c-4133-b6cc-315acc6418e4",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "user_name work_phone profile test openid uma_protection email super_gluu_ro_session oxd address org_name permission phone clientinfo",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "9d52a738-2e29-48d0-93e2-52470722e459",
    "client_id_issued_at": 1575529836,
    "client_name": "oxAuth test app",
    "request_object_encryption_enc": "A256GCM",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": ["implicit"],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "id_token_encrypted_response_alg": "RSA-OAEP",
    "client_secret_expires_at": 1575616236,
    "id_token_encrypted_response_enc": "A256GCM",
    "jwks_uri": "https://jenkins-cb.gluu.org/oxauth-client/test/resources/jwks.json",
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": [
        "token",
        "id_token"
    ]
}

authenticateResourceOwnerAndGrantAccess: Cleaning cookies
authenticateResourceOwnerAndGrantAccess: authorizationRequestUrl:https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=token+id_token&client_id=8c20d803-107c-4133-b6cc-315acc6418e4&scope=openid+address&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=3d675985-55f6-4f02-bec8-e6c9b298df90&nonce=a65d6df0-65bf-4e17-91e8-db1071d2e137&request=eyJraWQiOiI4MTIyMDQ3Yi1jOTcxLTQxNjItYWI5YS03YjU4ZThjMGZkMjNfc2lnX3JzYS1vYWVwIiwidHlwIjoiSldUIiwiZW5jIjoiQTI1NkdDTSIsImFsZyI6IlJTQS1PQUVQIn0.cK_JTpWSdDz2JgdZDFG62qOLG0Tw7MZD0w8nv1csGZ0w-EETYqd6SGANGIaoHytFsGxRAp_yhmTn6WI2cgrdUtQchOnlPdvbn_owpQwDRimf9kKZs-jQioLFofNK9rqcxxO4esaUZjsOtvTKKbP2zXPmRzpMl6sW4n0puq3bN7Ffo5W4eKQ6Wda5PMADTBCx9KNgHgHR465xh-GVMOsJ1IVAcsz9TtMxgXH8tavvZzgWHAYiYh4aO4SF30i7tr0nU88Ns4cKLKFqG8qOIkAXK3RiyEvlnV0N8Q2haB53pATjKP8VoWdqPUPWrubUm_rGSHOVNmBmBH_kYt0MkYRfpg.AbsX520Fmj98jKQK.U6S2HFzAzW1VdUcBPMy5eSV6E8znnoG29Fhe2ChPyGHj_-vs4vOlNe_KqiFMgGS2YsF0sSa6Y8lfvrDlneJv_W840FA1P0l1lme9qVx9NKJOeuzwskeGn-WkS8wwRMMqqwpBtktB0wshsmVgqtS50YlB9I4bexg8xmWDKznBlklQO7jVK26UF1mwb8HqIoRlpn82jTU13FBiwO2lQZUmY3UN7TJU09Vc0VyrpovUVGlA74pn2_pK7uTlwVCIROEP2v5dv8XKdD6O8b7sujZbI2mN19ATR6x4Lnq-ybZ7VzLn8yMCY3P7DAwm8ZRssMF6alYF48ACrwwNtjOu4myPD6vjxd679G2tVismddKM73XfNkbj2PEVnRImrh0jw5iE76HCOMKHfN9m9x76IhNT6XnNuogJXK9yTqduafzXQfHcDnNa3o2cgmFpRubcD4Z20efA7lkLpLpomNgJCcSyFL1pKyt4_8FiQ5kvvFOjdHr64swODIclZGRZZblKuanS88vIhhejb3MuMko1QiahssoxYUO-ggIJxmrCLL-N2D_dalSAHn1nb-i3-QSzoueIxERJHBhC6RZ2b-ArljNIj6I_f1fkuNOBqc1i09OMXva1gm5QFQzkibeXZ35GRc8i_TI_DAnTuIRCgrxaiKU0xueCAVJEnZVwcXiZZMWDse1s2BFPWvoFqvHEVmU0HjfRfY-UFYYOwcmaXMi_BvcZ-940OuDcY48OaIr0Hnu8fuCELinXBkeZziJasu1VI_F-DPQmZTAyFphiv4AVNIPc9Un51kLoFlWqgXmkLvlrgqGawKpYRQQA7hX67_0mYS3izzjT3_GgrWtp5c-3tHewgosJChPM7A.h_f7H6FxZlM9QQfTkQEEDA
authenticateResourceOwnerAndGrantAccess: sessionState:18d1183dd96b54fd6ff65065229605853d042e3e55a86624db4e48b958f4d42b.e909e3e9-7077-4c78-a587-97c17fc7369a
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=token+id_token&client_id=8c20d803-107c-4133-b6cc-315acc6418e4&scope=openid+address&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=3d675985-55f6-4f02-bec8-e6c9b298df90&nonce=a65d6df0-65bf-4e17-91e8-db1071d2e137&request=eyJraWQiOiI4MTIyMDQ3Yi1jOTcxLTQxNjItYWI5YS03YjU4ZThjMGZkMjNfc2lnX3JzYS1vYWVwIiwidHlwIjoiSldUIiwiZW5jIjoiQTI1NkdDTSIsImFsZyI6IlJTQS1PQUVQIn0.cK_JTpWSdDz2JgdZDFG62qOLG0Tw7MZD0w8nv1csGZ0w-EETYqd6SGANGIaoHytFsGxRAp_yhmTn6WI2cgrdUtQchOnlPdvbn_owpQwDRimf9kKZs-jQioLFofNK9rqcxxO4esaUZjsOtvTKKbP2zXPmRzpMl6sW4n0puq3bN7Ffo5W4eKQ6Wda5PMADTBCx9KNgHgHR465xh-GVMOsJ1IVAcsz9TtMxgXH8tavvZzgWHAYiYh4aO4SF30i7tr0nU88Ns4cKLKFqG8qOIkAXK3RiyEvlnV0N8Q2haB53pATjKP8VoWdqPUPWrubUm_rGSHOVNmBmBH_kYt0MkYRfpg.AbsX520Fmj98jKQK.U6S2HFzAzW1VdUcBPMy5eSV6E8znnoG29Fhe2ChPyGHj_-vs4vOlNe_KqiFMgGS2YsF0sSa6Y8lfvrDlneJv_W840FA1P0l1lme9qVx9NKJOeuzwskeGn-WkS8wwRMMqqwpBtktB0wshsmVgqtS50YlB9I4bexg8xmWDKznBlklQO7jVK26UF1mwb8HqIoRlpn82jTU13FBiwO2lQZUmY3UN7TJU09Vc0VyrpovUVGlA74pn2_pK7uTlwVCIROEP2v5dv8XKdD6O8b7sujZbI2mN19ATR6x4Lnq-ybZ7VzLn8yMCY3P7DAwm8ZRssMF6alYF48ACrwwNtjOu4myPD6vjxd679G2tVismddKM73XfNkbj2PEVnRImrh0jw5iE76HCOMKHfN9m9x76IhNT6XnNuogJXK9yTqduafzXQfHcDnNa3o2cgmFpRubcD4Z20efA7lkLpLpomNgJCcSyFL1pKyt4_8FiQ5kvvFOjdHr64swODIclZGRZZblKuanS88vIhhejb3MuMko1QiahssoxYUO-ggIJxmrCLL-N2D_dalSAHn1nb-i3-QSzoueIxERJHBhC6RZ2b-ArljNIj6I_f1fkuNOBqc1i09OMXva1gm5QFQzkibeXZ35GRc8i_TI_DAnTuIRCgrxaiKU0xueCAVJEnZVwcXiZZMWDse1s2BFPWvoFqvHEVmU0HjfRfY-UFYYOwcmaXMi_BvcZ-940OuDcY48OaIr0Hnu8fuCELinXBkeZziJasu1VI_F-DPQmZTAyFphiv4AVNIPc9Un51kLoFlWqgXmkLvlrgqGawKpYRQQA7hX67_0mYS3izzjT3_GgrWtp5c-3tHewgosJChPM7A.h_f7H6FxZlM9QQfTkQEEDA

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm#access_token=f0db863f-e28d-48c1-bf5b-c613569435e4&scope=address+openid&id_token=eyJraWQiOiJkOTFkYjUxZC0wZTdmLTQyMjUtOTllNS0xNjQ0NDRjMTJkMWEiLCJ0eXAiOiJKV1QiLCJlbmMiOiJBMjU2R0NNIiwiYWxnIjoiUlNBLU9BRVAifQ.PvHH2QivJPT85ksoIqW__WfnygHqZRukHWVTRodXJFxO28-jHJYPjXXkRFWLpwssFTO6Rc61__ye9pI0VrmXrqucLb13fNvNEpGspDTqopxOKryQEO3sqEfoszwY9Sh51niWypj5-QdZZQ6XLZmV1tlW6-Dh8bFHCUb5bMmUU6K1N1TAReRC3x4d3VlOX7L3VwQFkPpOkU-23UXG5Emq6eMrKm298PLVPN_SYDmAURhfactNWjJCTSu6fJr_CNL0H__SYhdTDLmpYbs-mxm8C4xcLlUq44_nmf_kZeMvTfF3jhh_ay8AmZoDTq-Ptz2eY_u7rkt1-eqZmq0oAlrWqw.k9vMj9nC6dvUTuoZ.3kg8ISBWthPtI1tlywcCbS_NT7D8vVFCLDGkScvSbppV8qpQVUxgdHjzvtA8zu6uYNYypO6aVMdWpBvmQps7A2q1iB7Eh_8OLNEh0DHrn_qn6tWKDlLdTqZFdtVBLRYxMOgOrt84qTbErEdtRlETWMoKX4c2LJh4SIjaAIb-phahkJX2KgINkSxmAi0ZcZjIc-z_id4UQB5aBXqFoJT9KZKIEi8rh88xK4NBLiwSCTXBPNdIPBf52Y8ZDfP_0wybtDYIj0AW-aH2kbEV-Ein6Ztn1bR1ZrAMhKcRnUqvajEN6wO-ALc6U-ivc_J9Hyr4hFzN9jULhX09dArktjBe5Sm9YU2aGXCDnhSwTXlOlEL8t83VSsoMAK7fjUu7R6vNS0g-ID1WkXrAXl-_EP2RGiiQCXQzTkotKbfvyadxfozn1w8LxKjoBv-kQpvjVSEGvOaSym0yi7ldHppMO0VNl2qet2MPR3UFO7GEzbkkimsC6YmKBAYw-RJp36ESlMAE2nf3tasrpOLCbEPMu_zl5XaJQAF588BYK1fyqSghmzYzk8oU2Z9hnKdby6KDXcL_W1i-bjJgj7V933yBcsTcKOWqn94fM0Rzb_6r9WotdX4QSCV5Xh5EYTl3qdyPCeM8G6GkCPYbS-T7g0ZB6yLk-ZNUNxXa4YthL64MoauoLdQ6kXioc188LaApwhw4xRujBYpSsaMVeyBeM12H7qz2jipmFsl3q_uC_Tgzx3bIokfOaRbNiWiKYyN1NHqkxpOH1akhNwp6ZB74gf7DjfoYCe4gas8MGaVY2Ms2yOsmH56iER6jgTCgS32UEtetA1qot8V-ppNhIoZWu9vKaPXunmmSUWDs-9wii46Jn5XCnkpuOzABfa5DEOvr6IZkVfpesWu1HSKz6w.EbKl5RDoDMbL8la_WzbMcw&session_id=20579461-2c43-413a-8c05-85a5e7c287fa&state=3d675985-55f6-4f02-bec8-e6c9b298df90&token_type=bearer&session_state=18d1183dd96b54fd6ff65065229605853d042e3e55a86624db4e48b958f4d42b.e909e3e9-7077-4c78-a587-97c17fc7369a&expires_in=299

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
GET /oxauth/restv1/userinfo HTTP/1.1
Host: jenkins-cb.gluu.org
Authorization: Bearer f0db863f-e28d-48c1-bf5b-c613569435e4

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store, private
Connection: Keep-Alive
Content-Length: 964
Content-Type: application/jwt
Date: Thu, 05 Dec 2019 07:10:40 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

eyJ0eXAiOiJKV1QiLCJlbmMiOiJBMjU2R0NNIiwiYWxnIjoiUlNBLU9BRVAifQ.GVU1nBwuTSPMP4XTUrnXkjFvAGQFb3FEJbBYXxz676lmwghorhXA4vFTn-AgJRos-Xv13fuBDZDvVNXIGROQ9iOr8dTdUqSQxWhC7yOS3xq5brwt9cnlCy7QW-XKw04LtVJfR8va6bOozQKWdzRAXwQdkQaPAnZoi2cauvvYkn2Fc2LyZQXSls4rWcoIGWTcxvD863dzbMfiGd3klqrMb1XNrlBePopPqWk3zsJvY8IUsPNcRjFg8PWdufHDSeEqVxVKagqm2bLKEC98bF403b2530-jd7zH45CBJQF8iKoCQudI5aUq0HU18uXZCAIbfjRmmi12_dJH-xQtsadMmg.MuhpPLJYtq0cizbv.6JQChIsYbBf92Jw3k95L_17u6Z6JAbmsNSuY_xCYEMk2UMVWJjZcToUbyao3tCCdCC1TXdY5h3se3DY1twwaZ_x4Yj8iej_gLFqIKgrC0XxRKyBRU5MItQG44DKLa3GDTkmppwKnYitqN5-2sgjBvzKZtXD1bjdqxoF_kq2k0ggrsC1M4-W2bzL12p1ZGI1YJW4a_goNdXrVW9bbE5NnIpYeiVtAwhnU6a-9o2EMlooOSlA_IaPW9Msag4EpLlUv37DhuiigqJCoNPL_uTHyLt2r462G58P-KtqmN5EUt8c1bLDI_uQ483xQm3P4tDHlDPO4ET9-BB_WA-NKegz1U-Qh98EGogZazVnGiu_qdclOXzsynXqihI7-MwYDO2mx9kjSkwMARHF2Zc3OWFlRismEueyqKu80od6kxEZklYQ_FIygD-mIWH50THXTvGKc9hBFvPzDcbpFj8xPxBmJ6_Gtybv3Jo0utlAVkaUDIk1kBnys9cDvZYVaNifixa8nNibdWQ.l2Z_scDWDampijICHtSTMA

#######################################################
TEST: authorizationRequestDefault
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "application_type" : "web",
  "oxIncludeClaimsInIdToken" : "true",
  "jwks_uri" : "https://jenkins-cb.gluu.org/oxauth-client/test/resources/jwks.json",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "sector_identifier_uri" : "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "client_name" : "oxAuth test app",
  "response_types" : [ "token", "id_token" ]
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1720
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:10:40 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=be0d9337-ed20-4365-b987-a5093e949321",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "5c38f205-fff6-4bf4-b7e8-0143c6855d69",
    "client_id": "be0d9337-ed20-4365-b987-a5093e949321",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "super_gluu_ro_session uma_protection user_name work_phone test profile org_name email clientinfo permission address phone oxd openid",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "21af1e19-0f66-4999-abce-fbcdce7e40b8",
    "client_id_issued_at": 1575529840,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": ["implicit"],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616240,
    "jwks_uri": "https://jenkins-cb.gluu.org/oxauth-client/test/resources/jwks.json",
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": [
        "token",
        "id_token"
    ]
}

authenticateResourceOwnerAndGrantAccess: Cleaning cookies
authenticateResourceOwnerAndGrantAccess: authorizationRequestUrl:https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=token+id_token&client_id=be0d9337-ed20-4365-b987-a5093e949321&scope=openid+address&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=ac98cc79-8871-4d05-9a1b-8a7c4af2c6dc&nonce=fc2799f4-ce01-4353-8863-a27f072cd424&request=ewogICJraWQiIDogIjZmYjE4NTlhLTU0ZDktNDdjNi1hMjkzLTkyY2UyY2VlNjNlMCIsCiAgInR5cCIgOiAiSldUIiwKICAiYWxnIiA6ICJSUzI1NiIKfQ.ewogICJzY29wZSIgOiBbICJvcGVuaWQiLCAiYWRkcmVzcyIgXSwKICAiY2xhaW1zIiA6IHsKICAgICJpZF90b2tlbiIgOiB7CiAgICAgICJzdHJlZXRfYWRkcmVzcyIgOiB7CiAgICAgICAgImVzc2VudGlhbCIgOiB0cnVlCiAgICAgIH0sCiAgICAgICJjb3VudHJ5IiA6IHsKICAgICAgICAiZXNzZW50aWFsIiA6IHRydWUKICAgICAgfSwKICAgICAgImF1dGhfdGltZSIgOiB7CiAgICAgICAgImVzc2VudGlhbCIgOiB0cnVlCiAgICAgIH0KICAgIH0sCiAgICAidXNlcmluZm8iIDogewogICAgICAic3RyZWV0X2FkZHJlc3MiIDogewogICAgICAgICJlc3NlbnRpYWwiIDogdHJ1ZQogICAgICB9LAogICAgICAiY291bnRyeSIgOiB7CiAgICAgICAgImVzc2VudGlhbCIgOiB0cnVlCiAgICAgIH0KICAgIH0KICB9LAogICJyZXNwb25zZV90eXBlIiA6IFsgInRva2VuIiwgImlkX3Rva2VuIiBdLAogICJyZWRpcmVjdF91cmkiIDogImh0dHBzJTNBJTJGJTJGamVua2lucy1jYi5nbHV1Lm9yZyUyRm94YXV0aC1ycCUyRmhvbWUuaHRtIiwKICAic3RhdGUiIDogImFjOThjYzc5LTg4NzEtNGQwNS05YTFiLThhN2M0YWYyYzZkYyIsCiAgIm5vbmNlIiA6ICJmYzI3OTlmNC1jZTAxLTQzNTMtODg2My1hMjdmMDcyY2Q0MjQiLAogICJjbGllbnRfaWQiIDogImJlMGQ5MzM3LWVkMjAtNDM2NS1iOTg3LWE1MDkzZTk0OTMyMSIKfQ.B1NSMaMZIvZIG_lKAb1f-EYtd2OoJJFqQ-asiGGRGhPsB-nB1FwiHOFEau0tGxiZKKs4kN9udm65V4n_xO55C-F4lE-bz7dvd3cLNnEbIXfT5J7qCCp-2U54Vrre_32lml3AMDxgT6JDVsfeskUkuGQSWeeRWmjPzjBgBb7S-AnN0hoVW_MVN3hFyrF4RFUpuYY5cwF7XvGw779PsXboUAhYolAbVPm2ScIjGlvGqte4Wwz_mAHMiGfQ5QGJqC69jBszdwO6n4yPRSENmoLXvqr7OQmuAtN027kmWUgRkU-PAKBp4cNYX4e9A8K5W4-7of0SVj8NMTQ-W_ihPQR43Q
authenticateResourceOwnerAndGrantAccess: sessionState:f5409f58f93f7459b20312ba7094141c11a963af180905fcc73a862a09db3279.027735d8-b5e4-44d9-aebc-a8c5d262b652
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=token+id_token&client_id=be0d9337-ed20-4365-b987-a5093e949321&scope=openid+address&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=ac98cc79-8871-4d05-9a1b-8a7c4af2c6dc&nonce=fc2799f4-ce01-4353-8863-a27f072cd424&request=ewogICJraWQiIDogIjZmYjE4NTlhLTU0ZDktNDdjNi1hMjkzLTkyY2UyY2VlNjNlMCIsCiAgInR5cCIgOiAiSldUIiwKICAiYWxnIiA6ICJSUzI1NiIKfQ.ewogICJzY29wZSIgOiBbICJvcGVuaWQiLCAiYWRkcmVzcyIgXSwKICAiY2xhaW1zIiA6IHsKICAgICJpZF90b2tlbiIgOiB7CiAgICAgICJzdHJlZXRfYWRkcmVzcyIgOiB7CiAgICAgICAgImVzc2VudGlhbCIgOiB0cnVlCiAgICAgIH0sCiAgICAgICJjb3VudHJ5IiA6IHsKICAgICAgICAiZXNzZW50aWFsIiA6IHRydWUKICAgICAgfSwKICAgICAgImF1dGhfdGltZSIgOiB7CiAgICAgICAgImVzc2VudGlhbCIgOiB0cnVlCiAgICAgIH0KICAgIH0sCiAgICAidXNlcmluZm8iIDogewogICAgICAic3RyZWV0X2FkZHJlc3MiIDogewogICAgICAgICJlc3NlbnRpYWwiIDogdHJ1ZQogICAgICB9LAogICAgICAiY291bnRyeSIgOiB7CiAgICAgICAgImVzc2VudGlhbCIgOiB0cnVlCiAgICAgIH0KICAgIH0KICB9LAogICJyZXNwb25zZV90eXBlIiA6IFsgInRva2VuIiwgImlkX3Rva2VuIiBdLAogICJyZWRpcmVjdF91cmkiIDogImh0dHBzJTNBJTJGJTJGamVua2lucy1jYi5nbHV1Lm9yZyUyRm94YXV0aC1ycCUyRmhvbWUuaHRtIiwKICAic3RhdGUiIDogImFjOThjYzc5LTg4NzEtNGQwNS05YTFiLThhN2M0YWYyYzZkYyIsCiAgIm5vbmNlIiA6ICJmYzI3OTlmNC1jZTAxLTQzNTMtODg2My1hMjdmMDcyY2Q0MjQiLAogICJjbGllbnRfaWQiIDogImJlMGQ5MzM3LWVkMjAtNDM2NS1iOTg3LWE1MDkzZTk0OTMyMSIKfQ.B1NSMaMZIvZIG_lKAb1f-EYtd2OoJJFqQ-asiGGRGhPsB-nB1FwiHOFEau0tGxiZKKs4kN9udm65V4n_xO55C-F4lE-bz7dvd3cLNnEbIXfT5J7qCCp-2U54Vrre_32lml3AMDxgT6JDVsfeskUkuGQSWeeRWmjPzjBgBb7S-AnN0hoVW_MVN3hFyrF4RFUpuYY5cwF7XvGw779PsXboUAhYolAbVPm2ScIjGlvGqte4Wwz_mAHMiGfQ5QGJqC69jBszdwO6n4yPRSENmoLXvqr7OQmuAtN027kmWUgRkU-PAKBp4cNYX4e9A8K5W4-7of0SVj8NMTQ-W_ihPQR43Q

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm#access_token=d327d0e4-bb8a-44af-ae33-0620efc8d904&scope=address+openid&id_token=eyJraWQiOiI5MjA3MzdmZC1mYWQ3LTQxNzAtOWU0OS00Y2Q2Yjc1N2EyNTRfc2lnX3JzMjU2IiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJhdF9oYXNoIjoiaFo2MUZ1VklXTWluTjdjOEFEejdwQSIsInN1YiI6ImFISHFJSHBSUzhzTFF0Q0dRMkF0SVlMVWNPVlUwd3FQbDhZdDRTeURNazgiLCJzdHJlZXRfYWRkcmVzcyI6IjYyMSBFYXN0IDZ0aCBTdHJlZXQiLCJjb3VudHJ5IjoiVVMiLCJhZGRyZXNzIjp7InN0cmVldF9hZGRyZXNzIjoiNjIxIEVhc3QgNnRoIFN0cmVldCIsImNvdW50cnkiOiJVUyIsImxvY2FsaXR5IjoiQXVzdGluIiwicmVnaW9uIjoiVGV4YXMifSwiaXNzIjoiaHR0cHM6Ly9qZW5raW5zLWNiLmdsdXUub3JnIiwibm9uY2UiOiJmYzI3OTlmNC1jZTAxLTQzNTMtODg2My1hMjdmMDcyY2Q0MjQiLCJveE9wZW5JRENvbm5lY3RWZXJzaW9uIjoib3BlbmlkY29ubmVjdC0xLjAiLCJhdWQiOiJiZTBkOTMzNy1lZDIwLTQzNjUtYjk4Ny1hNTA5M2U5NDkzMjEiLCJzX2hhc2giOiJ4cmFidmNUSnFuSHR6TjJVMkhjZUNBIiwiYXV0aF90aW1lIjoxNTc1NTI5ODQyLCJleHAiOjE1NzU1MzM0NDQsImlhdCI6MTU3NTUyOTg0NH0.blPxX7nn10dYFRf1Ou9JC7dPRtnxngjOXBFVhvJu968tCvysgcysscRBU1GfnLBsBWmLpLwfVtoI2qIwXCEAjX1Npgv7AkA8RGP53WSaoaYqCLNmr7xgRGdMcsR2QDLRm4tf-WLJjgBegMlkar9AbNR8CEo-hkrVC9GohXeJ5GG1uzHek_9qP4w0bmdjB6nK8il-fXhcqUQUKmam4bylcWEs44z4XYN_YcGR-IuzqJu6M0PFF3QCzb2dClKPfem6u4hteHSLdQjlJIswkfq3HbQyZSmwupzU1QAGnKEboEwtYIq59VQhcwUIvjIxLYouDtv8zSE3FOCGwXQeag1SZg&session_id=c779884c-6a60-4d5f-a177-fd0352589c1c&state=ac98cc79-8871-4d05-9a1b-8a7c4af2c6dc&token_type=bearer&session_state=f5409f58f93f7459b20312ba7094141c11a963af180905fcc73a862a09db3279.027735d8-b5e4-44d9-aebc-a8c5d262b652&expires_in=299

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
GET /oxauth/restv1/userinfo HTTP/1.1
Host: jenkins-cb.gluu.org
Authorization: Bearer d327d0e4-bb8a-44af-ae33-0620efc8d904

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store, private
Connection: Keep-Alive
Content-Length: 210
Content-Type: application/json;charset=utf-8
Date: Thu, 05 Dec 2019 07:10:44 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{"sub":"aHHqIHpRS8sLQtCGQ2AtIYLUcOVU0wqPl8Yt4SyDMk8","street_address":"621 East 6th Street","country":"US","address":{"street_address":"621 East 6th Street","country":"US","locality":"Austin","region":"Texas"}}

#######################################################
TEST: authorizationRequestES256
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "application_type" : "web",
  "oxIncludeClaimsInIdToken" : "true",
  "jwks_uri" : "https://jenkins-cb.gluu.org/oxauth-client/test/resources/jwks.json",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "request_object_signing_alg" : "ES256",
  "sector_identifier_uri" : "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "client_name" : "oxAuth test app",
  "userinfo_signed_response_alg" : "ES256",
  "response_types" : [ "token", "id_token" ],
  "id_token_signed_response_alg" : "ES256"
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1808
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:10:44 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=58f476da-0409-4d8f-8708-6568291657ac",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "8ea8bd48-0522-4112-a6fa-760939196680",
    "client_id": "58f476da-0409-4d8f-8708-6568291657ac",
    "userinfo_signed_response_alg": "ES256",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "openid oxd phone work_phone permission address user_name profile super_gluu_ro_session clientinfo email uma_protection org_name test",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "717f49ae-7f4d-43ef-bfb7-104e874c1c09",
    "client_id_issued_at": 1575529845,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "ES256",
    "access_token_as_jwt": false,
    "grant_types": ["implicit"],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616245,
    "jwks_uri": "https://jenkins-cb.gluu.org/oxauth-client/test/resources/jwks.json",
    "require_auth_time": false,
    "request_object_signing_alg": "ES256",
    "access_token_signing_alg": "RS256",
    "response_types": [
        "token",
        "id_token"
    ]
}

authenticateResourceOwnerAndGrantAccess: Cleaning cookies
authenticateResourceOwnerAndGrantAccess: authorizationRequestUrl:https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=token+id_token&client_id=58f476da-0409-4d8f-8708-6568291657ac&scope=openid+address&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=b67fef27-4846-44fb-b062-97e7369a4a95&nonce=74628a6b-1835-4989-ab31-b4e09d25094c&request=ewogICJraWQiIDogImE4YjYyYzlkLTY1ZWEtNDM4NC1hNDkxLWU1MjkyNGM0YTBlMyIsCiAgInR5cCIgOiAiSldUIiwKICAiYWxnIiA6ICJFUzI1NiIKfQ.ewogICJzY29wZSIgOiBbICJvcGVuaWQiLCAiYWRkcmVzcyIgXSwKICAiY2xhaW1zIiA6IHsKICAgICJpZF90b2tlbiIgOiB7CiAgICAgICJzdHJlZXRfYWRkcmVzcyIgOiB7CiAgICAgICAgImVzc2VudGlhbCIgOiB0cnVlCiAgICAgIH0sCiAgICAgICJjb3VudHJ5IiA6IHsKICAgICAgICAiZXNzZW50aWFsIiA6IHRydWUKICAgICAgfSwKICAgICAgImF1dGhfdGltZSIgOiB7CiAgICAgICAgImVzc2VudGlhbCIgOiB0cnVlCiAgICAgIH0KICAgIH0sCiAgICAidXNlcmluZm8iIDogewogICAgICAic3RyZWV0X2FkZHJlc3MiIDogewogICAgICAgICJlc3NlbnRpYWwiIDogdHJ1ZQogICAgICB9LAogICAgICAiY291bnRyeSIgOiB7CiAgICAgICAgImVzc2VudGlhbCIgOiB0cnVlCiAgICAgIH0KICAgIH0KICB9LAogICJyZXNwb25zZV90eXBlIiA6IFsgInRva2VuIiwgImlkX3Rva2VuIiBdLAogICJyZWRpcmVjdF91cmkiIDogImh0dHBzJTNBJTJGJTJGamVua2lucy1jYi5nbHV1Lm9yZyUyRm94YXV0aC1ycCUyRmhvbWUuaHRtIiwKICAic3RhdGUiIDogImI2N2ZlZjI3LTQ4NDYtNDRmYi1iMDYyLTk3ZTczNjlhNGE5NSIsCiAgIm5vbmNlIiA6ICI3NDYyOGE2Yi0xODM1LTQ5ODktYWIzMS1iNGUwOWQyNTA5NGMiLAogICJjbGllbnRfaWQiIDogIjU4ZjQ3NmRhLTA0MDktNGQ4Zi04NzA4LTY1NjgyOTE2NTdhYyIKfQ.MEUCIQC-ESI8m-3cjwggzGd3D0Hg-uVzd_GTIrApM8JaM8ZjbwIgCwd-SmedLXuSJX1oINDBrHBp8xaxSiuyuFYHZ1Zysps
authenticateResourceOwnerAndGrantAccess: sessionState:d4deb50d02e1553f989afb50a0af0ea648c7a4fbd2b18c42539912f5b5d50901.9ce9e18c-ab66-44f3-acdc-2ba300ae98f7
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=token+id_token&client_id=58f476da-0409-4d8f-8708-6568291657ac&scope=openid+address&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=b67fef27-4846-44fb-b062-97e7369a4a95&nonce=74628a6b-1835-4989-ab31-b4e09d25094c&request=ewogICJraWQiIDogImE4YjYyYzlkLTY1ZWEtNDM4NC1hNDkxLWU1MjkyNGM0YTBlMyIsCiAgInR5cCIgOiAiSldUIiwKICAiYWxnIiA6ICJFUzI1NiIKfQ.ewogICJzY29wZSIgOiBbICJvcGVuaWQiLCAiYWRkcmVzcyIgXSwKICAiY2xhaW1zIiA6IHsKICAgICJpZF90b2tlbiIgOiB7CiAgICAgICJzdHJlZXRfYWRkcmVzcyIgOiB7CiAgICAgICAgImVzc2VudGlhbCIgOiB0cnVlCiAgICAgIH0sCiAgICAgICJjb3VudHJ5IiA6IHsKICAgICAgICAiZXNzZW50aWFsIiA6IHRydWUKICAgICAgfSwKICAgICAgImF1dGhfdGltZSIgOiB7CiAgICAgICAgImVzc2VudGlhbCIgOiB0cnVlCiAgICAgIH0KICAgIH0sCiAgICAidXNlcmluZm8iIDogewogICAgICAic3RyZWV0X2FkZHJlc3MiIDogewogICAgICAgICJlc3NlbnRpYWwiIDogdHJ1ZQogICAgICB9LAogICAgICAiY291bnRyeSIgOiB7CiAgICAgICAgImVzc2VudGlhbCIgOiB0cnVlCiAgICAgIH0KICAgIH0KICB9LAogICJyZXNwb25zZV90eXBlIiA6IFsgInRva2VuIiwgImlkX3Rva2VuIiBdLAogICJyZWRpcmVjdF91cmkiIDogImh0dHBzJTNBJTJGJTJGamVua2lucy1jYi5nbHV1Lm9yZyUyRm94YXV0aC1ycCUyRmhvbWUuaHRtIiwKICAic3RhdGUiIDogImI2N2ZlZjI3LTQ4NDYtNDRmYi1iMDYyLTk3ZTczNjlhNGE5NSIsCiAgIm5vbmNlIiA6ICI3NDYyOGE2Yi0xODM1LTQ5ODktYWIzMS1iNGUwOWQyNTA5NGMiLAogICJjbGllbnRfaWQiIDogIjU4ZjQ3NmRhLTA0MDktNGQ4Zi04NzA4LTY1NjgyOTE2NTdhYyIKfQ.MEUCIQC-ESI8m-3cjwggzGd3D0Hg-uVzd_GTIrApM8JaM8ZjbwIgCwd-SmedLXuSJX1oINDBrHBp8xaxSiuyuFYHZ1Zysps

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm#access_token=1f4b302a-f249-413f-b28a-ffe548e08bad&scope=address+openid&id_token=eyJraWQiOiI4MzJmYzdiOS04ZjU2LTRhMTctOTdmMS01ZmEwNTM2MDk5Y2Nfc2lnX2VzMjU2IiwidHlwIjoiSldUIiwiYWxnIjoiRVMyNTYifQ.eyJhdF9oYXNoIjoicUpUWTZ5YXRUTlA4aDJkWmtqcHBUZyIsInN1YiI6ImFISHFJSHBSUzhzTFF0Q0dRMkF0SVlMVWNPVlUwd3FQbDhZdDRTeURNazgiLCJzdHJlZXRfYWRkcmVzcyI6IjYyMSBFYXN0IDZ0aCBTdHJlZXQiLCJjb3VudHJ5IjoiVVMiLCJhZGRyZXNzIjp7InN0cmVldF9hZGRyZXNzIjoiNjIxIEVhc3QgNnRoIFN0cmVldCIsImNvdW50cnkiOiJVUyIsImxvY2FsaXR5IjoiQXVzdGluIiwicmVnaW9uIjoiVGV4YXMifSwiaXNzIjoiaHR0cHM6Ly9qZW5raW5zLWNiLmdsdXUub3JnIiwibm9uY2UiOiI3NDYyOGE2Yi0xODM1LTQ5ODktYWIzMS1iNGUwOWQyNTA5NGMiLCJveE9wZW5JRENvbm5lY3RWZXJzaW9uIjoib3BlbmlkY29ubmVjdC0xLjAiLCJhdWQiOiI1OGY0NzZkYS0wNDA5LTRkOGYtODcwOC02NTY4MjkxNjU3YWMiLCJzX2hhc2giOiIwM0pZeWRNS2tTWnBjakpUVlFrdmlBIiwiYXV0aF90aW1lIjoxNTc1NTI5ODQ2LCJleHAiOjE1NzU1MzM0NDksImlhdCI6MTU3NTUyOTg0OX0.MEYCIQDEUToPH6BFcQeXom0M02Da75ETgePDpfm_sj9gN1CkPAIhANeHSDvcUDJxwcK_e1MmMhTiwHKCtdAkRmZ7Do1HKBgg&session_id=98b65a88-3508-4fb3-86e5-7717f6968b99&state=b67fef27-4846-44fb-b062-97e7369a4a95&token_type=bearer&session_state=d4deb50d02e1553f989afb50a0af0ea648c7a4fbd2b18c42539912f5b5d50901.9ce9e18c-ab66-44f3-acdc-2ba300ae98f7&expires_in=299

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
GET /oxauth/restv1/userinfo HTTP/1.1
Host: jenkins-cb.gluu.org
Authorization: Bearer 1f4b302a-f249-413f-b28a-ffe548e08bad

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store, private
Connection: Keep-Alive
Content-Length: 595
Content-Type: application/jwt
Date: Thu, 05 Dec 2019 07:10:49 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

eyJraWQiOiI4MzJmYzdiOS04ZjU2LTRhMTctOTdmMS01ZmEwNTM2MDk5Y2Nfc2lnX2VzMjU2IiwidHlwIjoiSldUIiwiYWxnIjoiRVMyNTYifQ.eyJzdWIiOiJhSEhxSUhwUlM4c0xRdENHUTJBdElZTFVjT1ZVMHdxUGw4WXQ0U3lETWs4Iiwic3RyZWV0X2FkZHJlc3MiOiI2MjEgRWFzdCA2dGggU3RyZWV0IiwiY291bnRyeSI6IlVTIiwiYXVkIjoiNThmNDc2ZGEtMDQwOS00ZDhmLTg3MDgtNjU2ODI5MTY1N2FjIiwiYWRkcmVzcyI6eyJzdHJlZXRfYWRkcmVzcyI6IjYyMSBFYXN0IDZ0aCBTdHJlZXQiLCJjb3VudHJ5IjoiVVMiLCJsb2NhbGl0eSI6IkF1c3RpbiIsInJlZ2lvbiI6IlRleGFzIn0sImlzcyI6Imh0dHBzOi8vamVua2lucy1jYi5nbHV1Lm9yZyJ9.MEUCIQDSFNcjhLWVwCPbLZIyp1nu7Jn-zJtDZGPXCT6nQGQq7AIgR_qJEWeiHP8mnG0UrVMoOZ5D7q15I3DtmOsc1mNpgaE

#######################################################
TEST: authorizationRequestES384
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "application_type" : "web",
  "oxIncludeClaimsInIdToken" : "true",
  "jwks_uri" : "https://jenkins-cb.gluu.org/oxauth-client/test/resources/jwks.json",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "request_object_signing_alg" : "ES384",
  "sector_identifier_uri" : "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "client_name" : "oxAuth test app",
  "userinfo_signed_response_alg" : "ES384",
  "response_types" : [ "token", "id_token" ],
  "id_token_signed_response_alg" : "ES384"
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1808
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:10:49 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=1a1a0db8-77a9-4640-af89-cc914112f741",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "a0d1b5f5-1716-4d40-a61f-64c238af4745",
    "client_id": "1a1a0db8-77a9-4640-af89-cc914112f741",
    "userinfo_signed_response_alg": "ES384",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "user_name clientinfo profile super_gluu_ro_session oxd uma_protection email org_name work_phone test address permission phone openid",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "cd0bbfa8-34b1-479b-b101-103fc53a39f8",
    "client_id_issued_at": 1575529849,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "ES384",
    "access_token_as_jwt": false,
    "grant_types": ["implicit"],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616249,
    "jwks_uri": "https://jenkins-cb.gluu.org/oxauth-client/test/resources/jwks.json",
    "require_auth_time": false,
    "request_object_signing_alg": "ES384",
    "access_token_signing_alg": "RS256",
    "response_types": [
        "token",
        "id_token"
    ]
}

authenticateResourceOwnerAndGrantAccess: Cleaning cookies
authenticateResourceOwnerAndGrantAccess: authorizationRequestUrl:https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=token+id_token&client_id=1a1a0db8-77a9-4640-af89-cc914112f741&scope=openid+address&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=14b5a624-3a6a-4435-a341-b7d4d2ff169b&nonce=17ec0487-f504-4506-a500-fa5c282b9bb3&request=ewogICJraWQiIDogIjBiMWEwMTlmLWZjZmItNGQzZC05ODFiLTE2YjQ1MzU1ZGZkZiIsCiAgInR5cCIgOiAiSldUIiwKICAiYWxnIiA6ICJFUzM4NCIKfQ.ewogICJzY29wZSIgOiBbICJvcGVuaWQiLCAiYWRkcmVzcyIgXSwKICAiY2xhaW1zIiA6IHsKICAgICJpZF90b2tlbiIgOiB7CiAgICAgICJzdHJlZXRfYWRkcmVzcyIgOiB7CiAgICAgICAgImVzc2VudGlhbCIgOiB0cnVlCiAgICAgIH0sCiAgICAgICJjb3VudHJ5IiA6IHsKICAgICAgICAiZXNzZW50aWFsIiA6IHRydWUKICAgICAgfSwKICAgICAgImF1dGhfdGltZSIgOiB7CiAgICAgICAgImVzc2VudGlhbCIgOiB0cnVlCiAgICAgIH0KICAgIH0sCiAgICAidXNlcmluZm8iIDogewogICAgICAic3RyZWV0X2FkZHJlc3MiIDogewogICAgICAgICJlc3NlbnRpYWwiIDogdHJ1ZQogICAgICB9LAogICAgICAiY291bnRyeSIgOiB7CiAgICAgICAgImVzc2VudGlhbCIgOiB0cnVlCiAgICAgIH0KICAgIH0KICB9LAogICJyZXNwb25zZV90eXBlIiA6IFsgInRva2VuIiwgImlkX3Rva2VuIiBdLAogICJyZWRpcmVjdF91cmkiIDogImh0dHBzJTNBJTJGJTJGamVua2lucy1jYi5nbHV1Lm9yZyUyRm94YXV0aC1ycCUyRmhvbWUuaHRtIiwKICAic3RhdGUiIDogIjE0YjVhNjI0LTNhNmEtNDQzNS1hMzQxLWI3ZDRkMmZmMTY5YiIsCiAgIm5vbmNlIiA6ICIxN2VjMDQ4Ny1mNTA0LTQ1MDYtYTUwMC1mYTVjMjgyYjliYjMiLAogICJjbGllbnRfaWQiIDogIjFhMWEwZGI4LTc3YTktNDY0MC1hZjg5LWNjOTE0MTEyZjc0MSIKfQ.MGQCMFw_nI0xF3fbqVVFnH8DEwdu7icjgoICu2cai9aJrIvp-00wLdi9fvLkCHgePmb7FQIwS1W8ov_gV1WGJxpzKnX3H5DG0d-l5CZzCZ4bOXzwh7pg4GmpD8_l_spytSHr7yNx
authenticateResourceOwnerAndGrantAccess: sessionState:e65c7c498da854a507793db9a509b6fbb9d34de2a37920a9fa01c4c60efd5700.73b10173-8e86-41d6-b8ae-8011e6042b28
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=token+id_token&client_id=1a1a0db8-77a9-4640-af89-cc914112f741&scope=openid+address&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=14b5a624-3a6a-4435-a341-b7d4d2ff169b&nonce=17ec0487-f504-4506-a500-fa5c282b9bb3&request=ewogICJraWQiIDogIjBiMWEwMTlmLWZjZmItNGQzZC05ODFiLTE2YjQ1MzU1ZGZkZiIsCiAgInR5cCIgOiAiSldUIiwKICAiYWxnIiA6ICJFUzM4NCIKfQ.ewogICJzY29wZSIgOiBbICJvcGVuaWQiLCAiYWRkcmVzcyIgXSwKICAiY2xhaW1zIiA6IHsKICAgICJpZF90b2tlbiIgOiB7CiAgICAgICJzdHJlZXRfYWRkcmVzcyIgOiB7CiAgICAgICAgImVzc2VudGlhbCIgOiB0cnVlCiAgICAgIH0sCiAgICAgICJjb3VudHJ5IiA6IHsKICAgICAgICAiZXNzZW50aWFsIiA6IHRydWUKICAgICAgfSwKICAgICAgImF1dGhfdGltZSIgOiB7CiAgICAgICAgImVzc2VudGlhbCIgOiB0cnVlCiAgICAgIH0KICAgIH0sCiAgICAidXNlcmluZm8iIDogewogICAgICAic3RyZWV0X2FkZHJlc3MiIDogewogICAgICAgICJlc3NlbnRpYWwiIDogdHJ1ZQogICAgICB9LAogICAgICAiY291bnRyeSIgOiB7CiAgICAgICAgImVzc2VudGlhbCIgOiB0cnVlCiAgICAgIH0KICAgIH0KICB9LAogICJyZXNwb25zZV90eXBlIiA6IFsgInRva2VuIiwgImlkX3Rva2VuIiBdLAogICJyZWRpcmVjdF91cmkiIDogImh0dHBzJTNBJTJGJTJGamVua2lucy1jYi5nbHV1Lm9yZyUyRm94YXV0aC1ycCUyRmhvbWUuaHRtIiwKICAic3RhdGUiIDogIjE0YjVhNjI0LTNhNmEtNDQzNS1hMzQxLWI3ZDRkMmZmMTY5YiIsCiAgIm5vbmNlIiA6ICIxN2VjMDQ4Ny1mNTA0LTQ1MDYtYTUwMC1mYTVjMjgyYjliYjMiLAogICJjbGllbnRfaWQiIDogIjFhMWEwZGI4LTc3YTktNDY0MC1hZjg5LWNjOTE0MTEyZjc0MSIKfQ.MGQCMFw_nI0xF3fbqVVFnH8DEwdu7icjgoICu2cai9aJrIvp-00wLdi9fvLkCHgePmb7FQIwS1W8ov_gV1WGJxpzKnX3H5DG0d-l5CZzCZ4bOXzwh7pg4GmpD8_l_spytSHr7yNx

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm#access_token=46004c8a-4cc2-4ef8-928b-0db5ef08779b&scope=address+openid&id_token=eyJraWQiOiI1MTVkMDI3My03OWZkLTRhMjItYjM5NC05NzEzZWJhNGU3YzNfc2lnX2VzMzg0IiwidHlwIjoiSldUIiwiYWxnIjoiRVMzODQifQ.eyJhdF9oYXNoIjoiM05zMGo2S25PeDRyeW5RQWdiNDVRdnRBaVJTR2syRUIiLCJzdWIiOiJhSEhxSUhwUlM4c0xRdENHUTJBdElZTFVjT1ZVMHdxUGw4WXQ0U3lETWs4Iiwic3RyZWV0X2FkZHJlc3MiOiI2MjEgRWFzdCA2dGggU3RyZWV0IiwiY291bnRyeSI6IlVTIiwiYWRkcmVzcyI6eyJzdHJlZXRfYWRkcmVzcyI6IjYyMSBFYXN0IDZ0aCBTdHJlZXQiLCJjb3VudHJ5IjoiVVMiLCJsb2NhbGl0eSI6IkF1c3RpbiIsInJlZ2lvbiI6IlRleGFzIn0sImlzcyI6Imh0dHBzOi8vamVua2lucy1jYi5nbHV1Lm9yZyIsIm5vbmNlIjoiMTdlYzA0ODctZjUwNC00NTA2LWE1MDAtZmE1YzI4MmI5YmIzIiwib3hPcGVuSURDb25uZWN0VmVyc2lvbiI6Im9wZW5pZGNvbm5lY3QtMS4wIiwiYXVkIjoiMWExYTBkYjgtNzdhOS00NjQwLWFmODktY2M5MTQxMTJmNzQxIiwic19oYXNoIjoiY3pKQnl0b2VVQk1UV3VSa1hpX0dwTUNSWlE4TVZOUkQiLCJhdXRoX3RpbWUiOjE1NzU1Mjk4NTAsImV4cCI6MTU3NTUzMzQ1MywiaWF0IjoxNTc1NTI5ODUzfQ.MGYCMQD5EnxUEERGDUgF_Cy2K0aBPuIm4I9g8wxWaEqyHhtJq-exj-OiGpmIXcnvdti762gCMQDbSsfoFg1EKmw_ayQkGsoBdY2LpBcSbbvLnxOC8xBhtRH_yPT_xSjIGpyZVhdEuVw&session_id=d3ba9c89-9320-4ac2-b2cc-e9a66f3afba1&state=14b5a624-3a6a-4435-a341-b7d4d2ff169b&token_type=bearer&session_state=e65c7c498da854a507793db9a509b6fbb9d34de2a37920a9fa01c4c60efd5700.73b10173-8e86-41d6-b8ae-8011e6042b28&expires_in=299

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
GET /oxauth/restv1/userinfo HTTP/1.1
Host: jenkins-cb.gluu.org
Authorization: Bearer 46004c8a-4cc2-4ef8-928b-0db5ef08779b

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store, private
Connection: Keep-Alive
Content-Length: 639
Content-Type: application/jwt
Date: Thu, 05 Dec 2019 07:10:53 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

eyJraWQiOiI1MTVkMDI3My03OWZkLTRhMjItYjM5NC05NzEzZWJhNGU3YzNfc2lnX2VzMzg0IiwidHlwIjoiSldUIiwiYWxnIjoiRVMzODQifQ.eyJzdWIiOiJhSEhxSUhwUlM4c0xRdENHUTJBdElZTFVjT1ZVMHdxUGw4WXQ0U3lETWs4Iiwic3RyZWV0X2FkZHJlc3MiOiI2MjEgRWFzdCA2dGggU3RyZWV0IiwiY291bnRyeSI6IlVTIiwiYXVkIjoiMWExYTBkYjgtNzdhOS00NjQwLWFmODktY2M5MTQxMTJmNzQxIiwiYWRkcmVzcyI6eyJzdHJlZXRfYWRkcmVzcyI6IjYyMSBFYXN0IDZ0aCBTdHJlZXQiLCJjb3VudHJ5IjoiVVMiLCJsb2NhbGl0eSI6IkF1c3RpbiIsInJlZ2lvbiI6IlRleGFzIn0sImlzcyI6Imh0dHBzOi8vamVua2lucy1jYi5nbHV1Lm9yZyJ9.MGYCMQD-zi25f5HoK5v3pI-FXGnQCIWjYZs_5fw6kbISdSmPwlwFs9YqRCWfdvkt0Tg33BoCMQCg7ytXw8vxNxSr84K63aJzdscYaN5q_tXjD-R0wRxeSfIGQuPBBAmW3jezYOmQ7f4

#######################################################
TEST: authorizationRequestES512
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "application_type" : "web",
  "oxIncludeClaimsInIdToken" : "true",
  "jwks_uri" : "https://jenkins-cb.gluu.org/oxauth-client/test/resources/jwks.json",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "request_object_signing_alg" : "ES512",
  "sector_identifier_uri" : "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "client_name" : "oxAuth test app",
  "userinfo_signed_response_alg" : "ES512",
  "response_types" : [ "token", "id_token" ],
  "id_token_signed_response_alg" : "ES512"
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1808
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:10:54 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=85062d49-4e9e-4636-9d5f-1ed04163440b",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "87ef39d4-1e7a-4ace-8a9e-18b6259eb83a",
    "client_id": "85062d49-4e9e-4636-9d5f-1ed04163440b",
    "userinfo_signed_response_alg": "ES512",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "user_name org_name uma_protection profile phone openid super_gluu_ro_session work_phone test permission clientinfo oxd address email",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "17ec76db-5ade-4894-b911-e1a427b19ec5",
    "client_id_issued_at": 1575529854,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "ES512",
    "access_token_as_jwt": false,
    "grant_types": ["implicit"],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616254,
    "jwks_uri": "https://jenkins-cb.gluu.org/oxauth-client/test/resources/jwks.json",
    "require_auth_time": false,
    "request_object_signing_alg": "ES512",
    "access_token_signing_alg": "RS256",
    "response_types": [
        "token",
        "id_token"
    ]
}

authenticateResourceOwnerAndGrantAccess: Cleaning cookies
authenticateResourceOwnerAndGrantAccess: authorizationRequestUrl:https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=token+id_token&client_id=85062d49-4e9e-4636-9d5f-1ed04163440b&scope=openid+address&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=c66a0fda-cee1-43d7-ba72-7a4f7f9421a8&nonce=b71491a5-421a-4f20-9296-aa1638199596&request=ewogICJraWQiIDogIjA3YzkxN2VmLTk0M2YtNGE5YS05NjFjLWQzY2JhMjhjODFkNSIsCiAgInR5cCIgOiAiSldUIiwKICAiYWxnIiA6ICJFUzUxMiIKfQ.ewogICJzY29wZSIgOiBbICJvcGVuaWQiLCAiYWRkcmVzcyIgXSwKICAiY2xhaW1zIiA6IHsKICAgICJpZF90b2tlbiIgOiB7CiAgICAgICJzdHJlZXRfYWRkcmVzcyIgOiB7CiAgICAgICAgImVzc2VudGlhbCIgOiB0cnVlCiAgICAgIH0sCiAgICAgICJjb3VudHJ5IiA6IHsKICAgICAgICAiZXNzZW50aWFsIiA6IHRydWUKICAgICAgfSwKICAgICAgImF1dGhfdGltZSIgOiB7CiAgICAgICAgImVzc2VudGlhbCIgOiB0cnVlCiAgICAgIH0KICAgIH0sCiAgICAidXNlcmluZm8iIDogewogICAgICAic3RyZWV0X2FkZHJlc3MiIDogewogICAgICAgICJlc3NlbnRpYWwiIDogdHJ1ZQogICAgICB9LAogICAgICAiY291bnRyeSIgOiB7CiAgICAgICAgImVzc2VudGlhbCIgOiB0cnVlCiAgICAgIH0KICAgIH0KICB9LAogICJyZXNwb25zZV90eXBlIiA6IFsgInRva2VuIiwgImlkX3Rva2VuIiBdLAogICJyZWRpcmVjdF91cmkiIDogImh0dHBzJTNBJTJGJTJGamVua2lucy1jYi5nbHV1Lm9yZyUyRm94YXV0aC1ycCUyRmhvbWUuaHRtIiwKICAic3RhdGUiIDogImM2NmEwZmRhLWNlZTEtNDNkNy1iYTcyLTdhNGY3Zjk0MjFhOCIsCiAgIm5vbmNlIiA6ICJiNzE0OTFhNS00MjFhLTRmMjAtOTI5Ni1hYTE2MzgxOTk1OTYiLAogICJjbGllbnRfaWQiIDogIjg1MDYyZDQ5LTRlOWUtNDYzNi05ZDVmLTFlZDA0MTYzNDQwYiIKfQ.MIGIAkIAg_1vaI17edRrnyrTlHil0rO3b721KVEsfPHZI-SfCfxNyDcIzHhDw8NVMl2ws6gWjAeAMS6vXfQBe9r3CRIZ398CQgGyJuISF4OBtaF41NPZJVdnQHZjhqo5dWP-LLsfDq1omZ-CnqzUAN8ziiXqh5RR-f0uGA7eDalga12yE0gRzrt7WA
authenticateResourceOwnerAndGrantAccess: sessionState:d67c40de4a3404ef7605fba2e5abeb78e2b1158c4e511f634f97168fb6a1e4e8.d037eb9d-052e-43c4-b5dc-f39b2bbe2ead
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=token+id_token&client_id=85062d49-4e9e-4636-9d5f-1ed04163440b&scope=openid+address&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=c66a0fda-cee1-43d7-ba72-7a4f7f9421a8&nonce=b71491a5-421a-4f20-9296-aa1638199596&request=ewogICJraWQiIDogIjA3YzkxN2VmLTk0M2YtNGE5YS05NjFjLWQzY2JhMjhjODFkNSIsCiAgInR5cCIgOiAiSldUIiwKICAiYWxnIiA6ICJFUzUxMiIKfQ.ewogICJzY29wZSIgOiBbICJvcGVuaWQiLCAiYWRkcmVzcyIgXSwKICAiY2xhaW1zIiA6IHsKICAgICJpZF90b2tlbiIgOiB7CiAgICAgICJzdHJlZXRfYWRkcmVzcyIgOiB7CiAgICAgICAgImVzc2VudGlhbCIgOiB0cnVlCiAgICAgIH0sCiAgICAgICJjb3VudHJ5IiA6IHsKICAgICAgICAiZXNzZW50aWFsIiA6IHRydWUKICAgICAgfSwKICAgICAgImF1dGhfdGltZSIgOiB7CiAgICAgICAgImVzc2VudGlhbCIgOiB0cnVlCiAgICAgIH0KICAgIH0sCiAgICAidXNlcmluZm8iIDogewogICAgICAic3RyZWV0X2FkZHJlc3MiIDogewogICAgICAgICJlc3NlbnRpYWwiIDogdHJ1ZQogICAgICB9LAogICAgICAiY291bnRyeSIgOiB7CiAgICAgICAgImVzc2VudGlhbCIgOiB0cnVlCiAgICAgIH0KICAgIH0KICB9LAogICJyZXNwb25zZV90eXBlIiA6IFsgInRva2VuIiwgImlkX3Rva2VuIiBdLAogICJyZWRpcmVjdF91cmkiIDogImh0dHBzJTNBJTJGJTJGamVua2lucy1jYi5nbHV1Lm9yZyUyRm94YXV0aC1ycCUyRmhvbWUuaHRtIiwKICAic3RhdGUiIDogImM2NmEwZmRhLWNlZTEtNDNkNy1iYTcyLTdhNGY3Zjk0MjFhOCIsCiAgIm5vbmNlIiA6ICJiNzE0OTFhNS00MjFhLTRmMjAtOTI5Ni1hYTE2MzgxOTk1OTYiLAogICJjbGllbnRfaWQiIDogIjg1MDYyZDQ5LTRlOWUtNDYzNi05ZDVmLTFlZDA0MTYzNDQwYiIKfQ.MIGIAkIAg_1vaI17edRrnyrTlHil0rO3b721KVEsfPHZI-SfCfxNyDcIzHhDw8NVMl2ws6gWjAeAMS6vXfQBe9r3CRIZ398CQgGyJuISF4OBtaF41NPZJVdnQHZjhqo5dWP-LLsfDq1omZ-CnqzUAN8ziiXqh5RR-f0uGA7eDalga12yE0gRzrt7WA

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm#access_token=f369cacf-3a6f-4074-af81-e9db55bee028&scope=address+openid&id_token=eyJraWQiOiJkM2RhMzVlZS00MWYzLTRlODktODVkMS01OTM1Yzg0NTdlNGVfc2lnX2VzNTEyIiwidHlwIjoiSldUIiwiYWxnIjoiRVM1MTIifQ.eyJhdF9oYXNoIjoiZkZ1RTF0bHVuVEl2RGo5ZGE3QmczeDJLTm5sZmJ4bXctUXphWmNUeGtsdyIsInN1YiI6ImFISHFJSHBSUzhzTFF0Q0dRMkF0SVlMVWNPVlUwd3FQbDhZdDRTeURNazgiLCJzdHJlZXRfYWRkcmVzcyI6IjYyMSBFYXN0IDZ0aCBTdHJlZXQiLCJjb3VudHJ5IjoiVVMiLCJhZGRyZXNzIjp7InN0cmVldF9hZGRyZXNzIjoiNjIxIEVhc3QgNnRoIFN0cmVldCIsImNvdW50cnkiOiJVUyIsImxvY2FsaXR5IjoiQXVzdGluIiwicmVnaW9uIjoiVGV4YXMifSwiaXNzIjoiaHR0cHM6Ly9qZW5raW5zLWNiLmdsdXUub3JnIiwibm9uY2UiOiJiNzE0OTFhNS00MjFhLTRmMjAtOTI5Ni1hYTE2MzgxOTk1OTYiLCJveE9wZW5JRENvbm5lY3RWZXJzaW9uIjoib3BlbmlkY29ubmVjdC0xLjAiLCJhdWQiOiI4NTA2MmQ0OS00ZTllLTQ2MzYtOWQ1Zi0xZWQwNDE2MzQ0MGIiLCJzX2hhc2giOiJLWHZnYm9iS0IyVmtnb3o5YkFCX0hTTlpDQmNSYXBEeW9QdjlocVZhV080IiwiYXV0aF90aW1lIjoxNTc1NTI5ODU1LCJleHAiOjE1NzU1MzM0NTgsImlhdCI6MTU3NTUyOTg1OH0.MIGIAkIBGrD7zy0olrqZDSUbEObC_gIcy-PHMf0PxYH0JgHBd3FkFL31lT1EIOw0yP8CsQgCt1LHpeRVuZlAJn7zdNaQ44MCQgDR72whhpgRqrB4QKU1tfxfoAkI4EIvMAj8-YhN1eSfjH8RnanjZEM9aYiT4TSHzBR0yJOqtB_RHZn3t1t13UuIKw&session_id=5a2e44d8-8339-4475-9631-098f5ea31378&state=c66a0fda-cee1-43d7-ba72-7a4f7f9421a8&token_type=bearer&session_state=d67c40de4a3404ef7605fba2e5abeb78e2b1158c4e511f634f97168fb6a1e4e8.d037eb9d-052e-43c4-b5dc-f39b2bbe2ead&expires_in=299

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
GET /oxauth/restv1/userinfo HTTP/1.1
Host: jenkins-cb.gluu.org
Authorization: Bearer f369cacf-3a6f-4074-af81-e9db55bee028

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store, private
Connection: Keep-Alive
Content-Length: 686
Content-Type: application/jwt
Date: Thu, 05 Dec 2019 07:10:58 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

eyJraWQiOiJkM2RhMzVlZS00MWYzLTRlODktODVkMS01OTM1Yzg0NTdlNGVfc2lnX2VzNTEyIiwidHlwIjoiSldUIiwiYWxnIjoiRVM1MTIifQ.eyJzdWIiOiJhSEhxSUhwUlM4c0xRdENHUTJBdElZTFVjT1ZVMHdxUGw4WXQ0U3lETWs4Iiwic3RyZWV0X2FkZHJlc3MiOiI2MjEgRWFzdCA2dGggU3RyZWV0IiwiY291bnRyeSI6IlVTIiwiYXVkIjoiODUwNjJkNDktNGU5ZS00NjM2LTlkNWYtMWVkMDQxNjM0NDBiIiwiYWRkcmVzcyI6eyJzdHJlZXRfYWRkcmVzcyI6IjYyMSBFYXN0IDZ0aCBTdHJlZXQiLCJjb3VudHJ5IjoiVVMiLCJsb2NhbGl0eSI6IkF1c3RpbiIsInJlZ2lvbiI6IlRleGFzIn0sImlzcyI6Imh0dHBzOi8vamVua2lucy1jYi5nbHV1Lm9yZyJ9.MIGIAkIApmB5Ln5FXaWr3ZrMYunz6eJDFI1o8J_ucherqSnZFRrLwp63qO57mFmcgpv1QAdgvN71v4CDVMd_wyki6X-rwxACQgFtr85Gv9LK7Kki3cXW4zlVJKSSZKgoItzPeOGCbDWQ4hS4pJl6f6OBX4OgDQXhJfUqctO9NiHzvuN6iLnBE94ujg

#######################################################
TEST: authorizationRequestHS256
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "application_type" : "web",
  "oxIncludeClaimsInIdToken" : "true",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "request_object_signing_alg" : "HS256",
  "sector_identifier_uri" : "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "client_name" : "oxAuth test app",
  "userinfo_signed_response_alg" : "HS256",
  "response_types" : [ "token", "id_token" ],
  "id_token_signed_response_alg" : "HS256"
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1722
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:10:58 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=dd0a48fc-a649-40bb-bdc0-fe9926b0335d",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "1d836278-e984-4cc5-9e65-631c9fdbe288",
    "client_id": "dd0a48fc-a649-40bb-bdc0-fe9926b0335d",
    "userinfo_signed_response_alg": "HS256",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "oxd super_gluu_ro_session permission test email openid uma_protection clientinfo profile user_name work_phone org_name address phone",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "6cc4b6b2-52cd-4cfd-a745-5d7017183154",
    "client_id_issued_at": 1575529858,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "HS256",
    "access_token_as_jwt": false,
    "grant_types": ["implicit"],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616258,
    "require_auth_time": false,
    "request_object_signing_alg": "HS256",
    "access_token_signing_alg": "RS256",
    "response_types": [
        "token",
        "id_token"
    ]
}

authenticateResourceOwnerAndGrantAccess: Cleaning cookies
authenticateResourceOwnerAndGrantAccess: authorizationRequestUrl:https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=token+id_token&client_id=dd0a48fc-a649-40bb-bdc0-fe9926b0335d&scope=openid+address&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=ca99757d-ee46-43fa-98d9-9ce3b888d830&nonce=a7e7fb8d-22f6-4b3d-b375-8e1adad00a82&request=ewogICJ0eXAiIDogIkpXVCIsCiAgImFsZyIgOiAiSFMyNTYiCn0.ewogICJzY29wZSIgOiBbICJvcGVuaWQiLCAiYWRkcmVzcyIgXSwKICAiY2xhaW1zIiA6IHsKICAgICJpZF90b2tlbiIgOiB7CiAgICAgICJzdHJlZXRfYWRkcmVzcyIgOiB7CiAgICAgICAgImVzc2VudGlhbCIgOiB0cnVlCiAgICAgIH0sCiAgICAgICJjb3VudHJ5IiA6IHsKICAgICAgICAiZXNzZW50aWFsIiA6IHRydWUKICAgICAgfSwKICAgICAgImF1dGhfdGltZSIgOiB7CiAgICAgICAgImVzc2VudGlhbCIgOiB0cnVlCiAgICAgIH0KICAgIH0sCiAgICAidXNlcmluZm8iIDogewogICAgICAic3RyZWV0X2FkZHJlc3MiIDogewogICAgICAgICJlc3NlbnRpYWwiIDogdHJ1ZQogICAgICB9LAogICAgICAiY291bnRyeSIgOiB7CiAgICAgICAgImVzc2VudGlhbCIgOiB0cnVlCiAgICAgIH0KICAgIH0KICB9LAogICJyZXNwb25zZV90eXBlIiA6IFsgInRva2VuIiwgImlkX3Rva2VuIiBdLAogICJyZWRpcmVjdF91cmkiIDogImh0dHBzJTNBJTJGJTJGamVua2lucy1jYi5nbHV1Lm9yZyUyRm94YXV0aC1ycCUyRmhvbWUuaHRtIiwKICAic3RhdGUiIDogImNhOTk3NTdkLWVlNDYtNDNmYS05OGQ5LTljZTNiODg4ZDgzMCIsCiAgIm5vbmNlIiA6ICJhN2U3ZmI4ZC0yMmY2LTRiM2QtYjM3NS04ZTFhZGFkMDBhODIiLAogICJjbGllbnRfaWQiIDogImRkMGE0OGZjLWE2NDktNDBiYi1iZGMwLWZlOTkyNmIwMzM1ZCIKfQ.ubbuI92kkDn5Qcg9e-S7VnefYNHbq4LD8yhXLZx-7r4
authenticateResourceOwnerAndGrantAccess: sessionState:f6df366bec9073e5dd2313d9a7cbb5841233be1a94c568d44c62843c9b5bc791.e7879676-b874-40eb-a100-9cc73a3fb333
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=token+id_token&client_id=dd0a48fc-a649-40bb-bdc0-fe9926b0335d&scope=openid+address&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=ca99757d-ee46-43fa-98d9-9ce3b888d830&nonce=a7e7fb8d-22f6-4b3d-b375-8e1adad00a82&request=ewogICJ0eXAiIDogIkpXVCIsCiAgImFsZyIgOiAiSFMyNTYiCn0.ewogICJzY29wZSIgOiBbICJvcGVuaWQiLCAiYWRkcmVzcyIgXSwKICAiY2xhaW1zIiA6IHsKICAgICJpZF90b2tlbiIgOiB7CiAgICAgICJzdHJlZXRfYWRkcmVzcyIgOiB7CiAgICAgICAgImVzc2VudGlhbCIgOiB0cnVlCiAgICAgIH0sCiAgICAgICJjb3VudHJ5IiA6IHsKICAgICAgICAiZXNzZW50aWFsIiA6IHRydWUKICAgICAgfSwKICAgICAgImF1dGhfdGltZSIgOiB7CiAgICAgICAgImVzc2VudGlhbCIgOiB0cnVlCiAgICAgIH0KICAgIH0sCiAgICAidXNlcmluZm8iIDogewogICAgICAic3RyZWV0X2FkZHJlc3MiIDogewogICAgICAgICJlc3NlbnRpYWwiIDogdHJ1ZQogICAgICB9LAogICAgICAiY291bnRyeSIgOiB7CiAgICAgICAgImVzc2VudGlhbCIgOiB0cnVlCiAgICAgIH0KICAgIH0KICB9LAogICJyZXNwb25zZV90eXBlIiA6IFsgInRva2VuIiwgImlkX3Rva2VuIiBdLAogICJyZWRpcmVjdF91cmkiIDogImh0dHBzJTNBJTJGJTJGamVua2lucy1jYi5nbHV1Lm9yZyUyRm94YXV0aC1ycCUyRmhvbWUuaHRtIiwKICAic3RhdGUiIDogImNhOTk3NTdkLWVlNDYtNDNmYS05OGQ5LTljZTNiODg4ZDgzMCIsCiAgIm5vbmNlIiA6ICJhN2U3ZmI4ZC0yMmY2LTRiM2QtYjM3NS04ZTFhZGFkMDBhODIiLAogICJjbGllbnRfaWQiIDogImRkMGE0OGZjLWE2NDktNDBiYi1iZGMwLWZlOTkyNmIwMzM1ZCIKfQ.ubbuI92kkDn5Qcg9e-S7VnefYNHbq4LD8yhXLZx-7r4

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm#access_token=d2de2595-1916-4dbd-a6fc-b9e710ed6d5e&scope=address+openid&id_token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdF9oYXNoIjoiU01XY3Bsd25jUnJGYmxoUjk4MEFIQSIsInN1YiI6ImFISHFJSHBSUzhzTFF0Q0dRMkF0SVlMVWNPVlUwd3FQbDhZdDRTeURNazgiLCJzdHJlZXRfYWRkcmVzcyI6IjYyMSBFYXN0IDZ0aCBTdHJlZXQiLCJjb3VudHJ5IjoiVVMiLCJhZGRyZXNzIjp7InN0cmVldF9hZGRyZXNzIjoiNjIxIEVhc3QgNnRoIFN0cmVldCIsImNvdW50cnkiOiJVUyIsImxvY2FsaXR5IjoiQXVzdGluIiwicmVnaW9uIjoiVGV4YXMifSwiaXNzIjoiaHR0cHM6Ly9qZW5raW5zLWNiLmdsdXUub3JnIiwibm9uY2UiOiJhN2U3ZmI4ZC0yMmY2LTRiM2QtYjM3NS04ZTFhZGFkMDBhODIiLCJveE9wZW5JRENvbm5lY3RWZXJzaW9uIjoib3BlbmlkY29ubmVjdC0xLjAiLCJhdWQiOiJkZDBhNDhmYy1hNjQ5LTQwYmItYmRjMC1mZTk5MjZiMDMzNWQiLCJzX2hhc2giOiJzNEV4UEJWRHlZTVdTRDlvTGtMam13IiwiYXV0aF90aW1lIjoxNTc1NTI5ODU5LCJleHAiOjE1NzU1MzM0NjIsImlhdCI6MTU3NTUyOTg2Mn0.f5xDBF11H3K64ccfLMUQEg69_LXDbBqdedhDPAQMLsw&session_id=b1f74531-c805-496c-b0c0-5641edeb290e&state=ca99757d-ee46-43fa-98d9-9ce3b888d830&token_type=bearer&session_state=f6df366bec9073e5dd2313d9a7cbb5841233be1a94c568d44c62843c9b5bc791.e7879676-b874-40eb-a100-9cc73a3fb333&expires_in=299

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
GET /oxauth/restv1/userinfo HTTP/1.1
Host: jenkins-cb.gluu.org
Authorization: Bearer d2de2595-1916-4dbd-a6fc-b9e710ed6d5e

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store, private
Connection: Keep-Alive
Content-Length: 469
Content-Type: application/jwt
Date: Thu, 05 Dec 2019 07:11:02 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhSEhxSUhwUlM4c0xRdENHUTJBdElZTFVjT1ZVMHdxUGw4WXQ0U3lETWs4Iiwic3RyZWV0X2FkZHJlc3MiOiI2MjEgRWFzdCA2dGggU3RyZWV0IiwiY291bnRyeSI6IlVTIiwiYXVkIjoiZGQwYTQ4ZmMtYTY0OS00MGJiLWJkYzAtZmU5OTI2YjAzMzVkIiwiYWRkcmVzcyI6eyJzdHJlZXRfYWRkcmVzcyI6IjYyMSBFYXN0IDZ0aCBTdHJlZXQiLCJjb3VudHJ5IjoiVVMiLCJsb2NhbGl0eSI6IkF1c3RpbiIsInJlZ2lvbiI6IlRleGFzIn0sImlzcyI6Imh0dHBzOi8vamVua2lucy1jYi5nbHV1Lm9yZyJ9.691F7nAQwPnGe1ZXxHn0ut8R0Mo3W7uEWfRlS7H9Jhw

#######################################################
TEST: authorizationRequestHS384
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "application_type" : "web",
  "oxIncludeClaimsInIdToken" : "true",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "request_object_signing_alg" : "HS384",
  "sector_identifier_uri" : "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "client_name" : "oxAuth test app",
  "userinfo_signed_response_alg" : "HS384",
  "response_types" : [ "token", "id_token" ],
  "id_token_signed_response_alg" : "HS384"
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1722
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:11:02 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=a0150bc4-0d50-4dc5-9ceb-5a70d1c208a7",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "aeb51313-ea30-4701-8bc8-79cc21ff5986",
    "client_id": "a0150bc4-0d50-4dc5-9ceb-5a70d1c208a7",
    "userinfo_signed_response_alg": "HS384",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "phone profile clientinfo address permission oxd user_name test openid uma_protection org_name super_gluu_ro_session email work_phone",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "07542fd6-4eee-4d49-afc7-819a39b87e29",
    "client_id_issued_at": 1575529862,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "HS384",
    "access_token_as_jwt": false,
    "grant_types": ["implicit"],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616262,
    "require_auth_time": false,
    "request_object_signing_alg": "HS384",
    "access_token_signing_alg": "RS256",
    "response_types": [
        "token",
        "id_token"
    ]
}

authenticateResourceOwnerAndGrantAccess: Cleaning cookies
authenticateResourceOwnerAndGrantAccess: authorizationRequestUrl:https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=token+id_token&client_id=a0150bc4-0d50-4dc5-9ceb-5a70d1c208a7&scope=openid+address&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=22f4709c-a40b-4a7e-924d-64a6cf65ffa9&nonce=23b987ed-0275-4813-83bd-cb258f0b24ed&request=ewogICJ0eXAiIDogIkpXVCIsCiAgImFsZyIgOiAiSFMzODQiCn0.ewogICJzY29wZSIgOiBbICJvcGVuaWQiLCAiYWRkcmVzcyIgXSwKICAiY2xhaW1zIiA6IHsKICAgICJpZF90b2tlbiIgOiB7CiAgICAgICJzdHJlZXRfYWRkcmVzcyIgOiB7CiAgICAgICAgImVzc2VudGlhbCIgOiB0cnVlCiAgICAgIH0sCiAgICAgICJjb3VudHJ5IiA6IHsKICAgICAgICAiZXNzZW50aWFsIiA6IHRydWUKICAgICAgfSwKICAgICAgImF1dGhfdGltZSIgOiB7CiAgICAgICAgImVzc2VudGlhbCIgOiB0cnVlCiAgICAgIH0KICAgIH0sCiAgICAidXNlcmluZm8iIDogewogICAgICAic3RyZWV0X2FkZHJlc3MiIDogewogICAgICAgICJlc3NlbnRpYWwiIDogdHJ1ZQogICAgICB9LAogICAgICAiY291bnRyeSIgOiB7CiAgICAgICAgImVzc2VudGlhbCIgOiB0cnVlCiAgICAgIH0KICAgIH0KICB9LAogICJyZXNwb25zZV90eXBlIiA6IFsgInRva2VuIiwgImlkX3Rva2VuIiBdLAogICJyZWRpcmVjdF91cmkiIDogImh0dHBzJTNBJTJGJTJGamVua2lucy1jYi5nbHV1Lm9yZyUyRm94YXV0aC1ycCUyRmhvbWUuaHRtIiwKICAic3RhdGUiIDogIjIyZjQ3MDljLWE0MGItNGE3ZS05MjRkLTY0YTZjZjY1ZmZhOSIsCiAgIm5vbmNlIiA6ICIyM2I5ODdlZC0wMjc1LTQ4MTMtODNiZC1jYjI1OGYwYjI0ZWQiLAogICJjbGllbnRfaWQiIDogImEwMTUwYmM0LTBkNTAtNGRjNS05Y2ViLTVhNzBkMWMyMDhhNyIKfQ.Z94g13S2vt_nOSE3Kye1cvZNCLt1Vnl4J4PsJ_vr0Yum49mJAMvbnm_RPVgdbOnE
authenticateResourceOwnerAndGrantAccess: sessionState:0904d3f99a202dd8314a750e256efa019afde3b2b4c6081b9e0b1914f0546c22.5e7b3242-799e-4da9-99d2-4881902a3851
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=token+id_token&client_id=a0150bc4-0d50-4dc5-9ceb-5a70d1c208a7&scope=openid+address&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=22f4709c-a40b-4a7e-924d-64a6cf65ffa9&nonce=23b987ed-0275-4813-83bd-cb258f0b24ed&request=ewogICJ0eXAiIDogIkpXVCIsCiAgImFsZyIgOiAiSFMzODQiCn0.ewogICJzY29wZSIgOiBbICJvcGVuaWQiLCAiYWRkcmVzcyIgXSwKICAiY2xhaW1zIiA6IHsKICAgICJpZF90b2tlbiIgOiB7CiAgICAgICJzdHJlZXRfYWRkcmVzcyIgOiB7CiAgICAgICAgImVzc2VudGlhbCIgOiB0cnVlCiAgICAgIH0sCiAgICAgICJjb3VudHJ5IiA6IHsKICAgICAgICAiZXNzZW50aWFsIiA6IHRydWUKICAgICAgfSwKICAgICAgImF1dGhfdGltZSIgOiB7CiAgICAgICAgImVzc2VudGlhbCIgOiB0cnVlCiAgICAgIH0KICAgIH0sCiAgICAidXNlcmluZm8iIDogewogICAgICAic3RyZWV0X2FkZHJlc3MiIDogewogICAgICAgICJlc3NlbnRpYWwiIDogdHJ1ZQogICAgICB9LAogICAgICAiY291bnRyeSIgOiB7CiAgICAgICAgImVzc2VudGlhbCIgOiB0cnVlCiAgICAgIH0KICAgIH0KICB9LAogICJyZXNwb25zZV90eXBlIiA6IFsgInRva2VuIiwgImlkX3Rva2VuIiBdLAogICJyZWRpcmVjdF91cmkiIDogImh0dHBzJTNBJTJGJTJGamVua2lucy1jYi5nbHV1Lm9yZyUyRm94YXV0aC1ycCUyRmhvbWUuaHRtIiwKICAic3RhdGUiIDogIjIyZjQ3MDljLWE0MGItNGE3ZS05MjRkLTY0YTZjZjY1ZmZhOSIsCiAgIm5vbmNlIiA6ICIyM2I5ODdlZC0wMjc1LTQ4MTMtODNiZC1jYjI1OGYwYjI0ZWQiLAogICJjbGllbnRfaWQiIDogImEwMTUwYmM0LTBkNTAtNGRjNS05Y2ViLTVhNzBkMWMyMDhhNyIKfQ.Z94g13S2vt_nOSE3Kye1cvZNCLt1Vnl4J4PsJ_vr0Yum49mJAMvbnm_RPVgdbOnE

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm#access_token=161c182d-3c2b-4eb1-b6ee-1fdfd8dfbb06&scope=address+openid&id_token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzM4NCJ9.eyJhdF9oYXNoIjoieTFKODV0dUdnU0ZpNlVubjJLUVZWcEhyLVBraTRCcFIiLCJzdWIiOiJhSEhxSUhwUlM4c0xRdENHUTJBdElZTFVjT1ZVMHdxUGw4WXQ0U3lETWs4Iiwic3RyZWV0X2FkZHJlc3MiOiI2MjEgRWFzdCA2dGggU3RyZWV0IiwiY291bnRyeSI6IlVTIiwiYWRkcmVzcyI6eyJzdHJlZXRfYWRkcmVzcyI6IjYyMSBFYXN0IDZ0aCBTdHJlZXQiLCJjb3VudHJ5IjoiVVMiLCJsb2NhbGl0eSI6IkF1c3RpbiIsInJlZ2lvbiI6IlRleGFzIn0sImlzcyI6Imh0dHBzOi8vamVua2lucy1jYi5nbHV1Lm9yZyIsIm5vbmNlIjoiMjNiOTg3ZWQtMDI3NS00ODEzLTgzYmQtY2IyNThmMGIyNGVkIiwib3hPcGVuSURDb25uZWN0VmVyc2lvbiI6Im9wZW5pZGNvbm5lY3QtMS4wIiwiYXVkIjoiYTAxNTBiYzQtMGQ1MC00ZGM1LTljZWItNWE3MGQxYzIwOGE3Iiwic19oYXNoIjoiVW1RUWp5dGJOWFJ3NmozM1BQQU91dWxHZG5VS0VuMi0iLCJhdXRoX3RpbWUiOjE1NzU1Mjk4NjMsImV4cCI6MTU3NTUzMzQ2NiwiaWF0IjoxNTc1NTI5ODY2fQ.zhVJU-UGib5BX102g1ZXjjqXvzd8ELLpEl3Gq7jwzlH989V-GwJrIzYx0ZBu6gV1&session_id=294cf913-8cdd-4b22-9f3a-6ca6fc70faa0&state=22f4709c-a40b-4a7e-924d-64a6cf65ffa9&token_type=bearer&session_state=0904d3f99a202dd8314a750e256efa019afde3b2b4c6081b9e0b1914f0546c22.5e7b3242-799e-4da9-99d2-4881902a3851&expires_in=299

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
GET /oxauth/restv1/userinfo HTTP/1.1
Host: jenkins-cb.gluu.org
Authorization: Bearer 161c182d-3c2b-4eb1-b6ee-1fdfd8dfbb06

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store, private
Connection: Keep-Alive
Content-Length: 490
Content-Type: application/jwt
Date: Thu, 05 Dec 2019 07:11:06 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzM4NCJ9.eyJzdWIiOiJhSEhxSUhwUlM4c0xRdENHUTJBdElZTFVjT1ZVMHdxUGw4WXQ0U3lETWs4Iiwic3RyZWV0X2FkZHJlc3MiOiI2MjEgRWFzdCA2dGggU3RyZWV0IiwiY291bnRyeSI6IlVTIiwiYXVkIjoiYTAxNTBiYzQtMGQ1MC00ZGM1LTljZWItNWE3MGQxYzIwOGE3IiwiYWRkcmVzcyI6eyJzdHJlZXRfYWRkcmVzcyI6IjYyMSBFYXN0IDZ0aCBTdHJlZXQiLCJjb3VudHJ5IjoiVVMiLCJsb2NhbGl0eSI6IkF1c3RpbiIsInJlZ2lvbiI6IlRleGFzIn0sImlzcyI6Imh0dHBzOi8vamVua2lucy1jYi5nbHV1Lm9yZyJ9.1UW8UMw7OXTioNSNK5KDDyI8l5mAt7xQkS7gkf7YDMHEOlERsWj_uoIl5_UK1JRF

#######################################################
TEST: authorizationRequestHS512
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "application_type" : "web",
  "oxIncludeClaimsInIdToken" : "true",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "request_object_signing_alg" : "HS512",
  "sector_identifier_uri" : "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "client_name" : "oxAuth test app",
  "userinfo_signed_response_alg" : "HS512",
  "response_types" : [ "token", "id_token" ],
  "id_token_signed_response_alg" : "HS512"
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1722
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:11:06 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=89704fbd-ae04-41f2-8c55-b589f486056a",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "6784d273-1742-4352-b4af-aced9cbb03e2",
    "client_id": "89704fbd-ae04-41f2-8c55-b589f486056a",
    "userinfo_signed_response_alg": "HS512",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "super_gluu_ro_session email address phone uma_protection user_name openid work_phone org_name test profile clientinfo oxd permission",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "b51ad892-b21d-4905-a676-a2c21756ae96",
    "client_id_issued_at": 1575529866,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "HS512",
    "access_token_as_jwt": false,
    "grant_types": ["implicit"],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616266,
    "require_auth_time": false,
    "request_object_signing_alg": "HS512",
    "access_token_signing_alg": "RS256",
    "response_types": [
        "token",
        "id_token"
    ]
}

authenticateResourceOwnerAndGrantAccess: Cleaning cookies
authenticateResourceOwnerAndGrantAccess: authorizationRequestUrl:https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=token+id_token&client_id=89704fbd-ae04-41f2-8c55-b589f486056a&scope=openid+address&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=c6e49d2b-7ed8-408d-9ebf-b599e73921d2&nonce=337b9f1e-2ef2-4a53-bbad-8de1bb80efc5&request=ewogICJ0eXAiIDogIkpXVCIsCiAgImFsZyIgOiAiSFM1MTIiCn0.ewogICJzY29wZSIgOiBbICJvcGVuaWQiLCAiYWRkcmVzcyIgXSwKICAiY2xhaW1zIiA6IHsKICAgICJpZF90b2tlbiIgOiB7CiAgICAgICJzdHJlZXRfYWRkcmVzcyIgOiB7CiAgICAgICAgImVzc2VudGlhbCIgOiB0cnVlCiAgICAgIH0sCiAgICAgICJjb3VudHJ5IiA6IHsKICAgICAgICAiZXNzZW50aWFsIiA6IHRydWUKICAgICAgfSwKICAgICAgImF1dGhfdGltZSIgOiB7CiAgICAgICAgImVzc2VudGlhbCIgOiB0cnVlCiAgICAgIH0KICAgIH0sCiAgICAidXNlcmluZm8iIDogewogICAgICAic3RyZWV0X2FkZHJlc3MiIDogewogICAgICAgICJlc3NlbnRpYWwiIDogdHJ1ZQogICAgICB9LAogICAgICAiY291bnRyeSIgOiB7CiAgICAgICAgImVzc2VudGlhbCIgOiB0cnVlCiAgICAgIH0KICAgIH0KICB9LAogICJyZXNwb25zZV90eXBlIiA6IFsgInRva2VuIiwgImlkX3Rva2VuIiBdLAogICJyZWRpcmVjdF91cmkiIDogImh0dHBzJTNBJTJGJTJGamVua2lucy1jYi5nbHV1Lm9yZyUyRm94YXV0aC1ycCUyRmhvbWUuaHRtIiwKICAic3RhdGUiIDogImM2ZTQ5ZDJiLTdlZDgtNDA4ZC05ZWJmLWI1OTllNzM5MjFkMiIsCiAgIm5vbmNlIiA6ICIzMzdiOWYxZS0yZWYyLTRhNTMtYmJhZC04ZGUxYmI4MGVmYzUiLAogICJjbGllbnRfaWQiIDogIjg5NzA0ZmJkLWFlMDQtNDFmMi04YzU1LWI1ODlmNDg2MDU2YSIKfQ.fcZNTIAYvrYPjcZtS0JR0TUjgfxoNSqyPyNe7RpsChjPI1zjKgN_C-xG3Y1IGpFA4t9hLOpYTSwzIFADYFY1Bg
authenticateResourceOwnerAndGrantAccess: sessionState:8e88bb57a44dea1f0b3cc65b0b90888844d845326c2af31c3a1d1469587ce0ef.e4fde9ef-a3e3-4a4a-a4d5-4d0188f4533b
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=token+id_token&client_id=89704fbd-ae04-41f2-8c55-b589f486056a&scope=openid+address&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=c6e49d2b-7ed8-408d-9ebf-b599e73921d2&nonce=337b9f1e-2ef2-4a53-bbad-8de1bb80efc5&request=ewogICJ0eXAiIDogIkpXVCIsCiAgImFsZyIgOiAiSFM1MTIiCn0.ewogICJzY29wZSIgOiBbICJvcGVuaWQiLCAiYWRkcmVzcyIgXSwKICAiY2xhaW1zIiA6IHsKICAgICJpZF90b2tlbiIgOiB7CiAgICAgICJzdHJlZXRfYWRkcmVzcyIgOiB7CiAgICAgICAgImVzc2VudGlhbCIgOiB0cnVlCiAgICAgIH0sCiAgICAgICJjb3VudHJ5IiA6IHsKICAgICAgICAiZXNzZW50aWFsIiA6IHRydWUKICAgICAgfSwKICAgICAgImF1dGhfdGltZSIgOiB7CiAgICAgICAgImVzc2VudGlhbCIgOiB0cnVlCiAgICAgIH0KICAgIH0sCiAgICAidXNlcmluZm8iIDogewogICAgICAic3RyZWV0X2FkZHJlc3MiIDogewogICAgICAgICJlc3NlbnRpYWwiIDogdHJ1ZQogICAgICB9LAogICAgICAiY291bnRyeSIgOiB7CiAgICAgICAgImVzc2VudGlhbCIgOiB0cnVlCiAgICAgIH0KICAgIH0KICB9LAogICJyZXNwb25zZV90eXBlIiA6IFsgInRva2VuIiwgImlkX3Rva2VuIiBdLAogICJyZWRpcmVjdF91cmkiIDogImh0dHBzJTNBJTJGJTJGamVua2lucy1jYi5nbHV1Lm9yZyUyRm94YXV0aC1ycCUyRmhvbWUuaHRtIiwKICAic3RhdGUiIDogImM2ZTQ5ZDJiLTdlZDgtNDA4ZC05ZWJmLWI1OTllNzM5MjFkMiIsCiAgIm5vbmNlIiA6ICIzMzdiOWYxZS0yZWYyLTRhNTMtYmJhZC04ZGUxYmI4MGVmYzUiLAogICJjbGllbnRfaWQiIDogIjg5NzA0ZmJkLWFlMDQtNDFmMi04YzU1LWI1ODlmNDg2MDU2YSIKfQ.fcZNTIAYvrYPjcZtS0JR0TUjgfxoNSqyPyNe7RpsChjPI1zjKgN_C-xG3Y1IGpFA4t9hLOpYTSwzIFADYFY1Bg

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm#access_token=c9b666ec-8f20-40df-b5ae-a55a5603a44a&scope=address+openid&id_token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJhdF9oYXNoIjoiYllMeVJVQjZIWlM3bXJQdzBMTWdFcmwySVZsNDRucy1OdlNjZWdYU2ZBTSIsInN1YiI6ImFISHFJSHBSUzhzTFF0Q0dRMkF0SVlMVWNPVlUwd3FQbDhZdDRTeURNazgiLCJzdHJlZXRfYWRkcmVzcyI6IjYyMSBFYXN0IDZ0aCBTdHJlZXQiLCJjb3VudHJ5IjoiVVMiLCJhZGRyZXNzIjp7InN0cmVldF9hZGRyZXNzIjoiNjIxIEVhc3QgNnRoIFN0cmVldCIsImNvdW50cnkiOiJVUyIsImxvY2FsaXR5IjoiQXVzdGluIiwicmVnaW9uIjoiVGV4YXMifSwiaXNzIjoiaHR0cHM6Ly9qZW5raW5zLWNiLmdsdXUub3JnIiwibm9uY2UiOiIzMzdiOWYxZS0yZWYyLTRhNTMtYmJhZC04ZGUxYmI4MGVmYzUiLCJveE9wZW5JRENvbm5lY3RWZXJzaW9uIjoib3BlbmlkY29ubmVjdC0xLjAiLCJhdWQiOiI4OTcwNGZiZC1hZTA0LTQxZjItOGM1NS1iNTg5ZjQ4NjA1NmEiLCJzX2hhc2giOiIxNFRnZlFVUXZjTXdlakVveU1odlYxc3ZXSkhHZjBobE0wV0pzeU8zOTZ3IiwiYXV0aF90aW1lIjoxNTc1NTI5ODY3LCJleHAiOjE1NzU1MzM0NzAsImlhdCI6MTU3NTUyOTg3MH0.iwXXORLLR_02jpO5W4N88aDtjHLY8lxQfFxP5N1o9gfVNrb7Jc7i9d4KOULEtLUbLtPPzWdn4nE0QaY3CKKi1g&session_id=68b22194-ca7a-42cb-918c-29d2d1a1488c&state=c6e49d2b-7ed8-408d-9ebf-b599e73921d2&token_type=bearer&session_state=8e88bb57a44dea1f0b3cc65b0b90888844d845326c2af31c3a1d1469587ce0ef.e4fde9ef-a3e3-4a4a-a4d5-4d0188f4533b&expires_in=299

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
GET /oxauth/restv1/userinfo HTTP/1.1
Host: jenkins-cb.gluu.org
Authorization: Bearer c9b666ec-8f20-40df-b5ae-a55a5603a44a

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store, private
Connection: Keep-Alive
Content-Length: 512
Content-Type: application/jwt
Date: Thu, 05 Dec 2019 07:11:10 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhSEhxSUhwUlM4c0xRdENHUTJBdElZTFVjT1ZVMHdxUGw4WXQ0U3lETWs4Iiwic3RyZWV0X2FkZHJlc3MiOiI2MjEgRWFzdCA2dGggU3RyZWV0IiwiY291bnRyeSI6IlVTIiwiYXVkIjoiODk3MDRmYmQtYWUwNC00MWYyLThjNTUtYjU4OWY0ODYwNTZhIiwiYWRkcmVzcyI6eyJzdHJlZXRfYWRkcmVzcyI6IjYyMSBFYXN0IDZ0aCBTdHJlZXQiLCJjb3VudHJ5IjoiVVMiLCJsb2NhbGl0eSI6IkF1c3RpbiIsInJlZ2lvbiI6IlRleGFzIn0sImlzcyI6Imh0dHBzOi8vamVua2lucy1jYi5nbHV1Lm9yZyJ9.qfJccp4_36HTr3U8tNObA5IyjrpEcawLxXwcTRA5BH1GvvBGop1h4ueGTFQA6T4sAnzC0ltrtML1Y2-Lr6lOwg

#######################################################
TEST: authorizationRequestPS256
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "application_type" : "web",
  "oxIncludeClaimsInIdToken" : "true",
  "jwks_uri" : "https://jenkins-cb.gluu.org/oxauth-client/test/resources/jwks.json",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "request_object_signing_alg" : "PS256",
  "sector_identifier_uri" : "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "client_name" : "oxAuth test app",
  "userinfo_signed_response_alg" : "PS256",
  "response_types" : [ "token", "id_token" ],
  "id_token_signed_response_alg" : "PS256"
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1808
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:11:10 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=1ce81583-e7ff-4c67-afd7-58f231d3553c",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "354802a5-6850-4aa7-9083-48b670fb6ee8",
    "client_id": "1ce81583-e7ff-4c67-afd7-58f231d3553c",
    "userinfo_signed_response_alg": "PS256",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "oxd super_gluu_ro_session address email phone test clientinfo openid profile user_name permission work_phone org_name uma_protection",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "3d66af8d-c70a-4466-a193-fde64aeb9b8c",
    "client_id_issued_at": 1575529870,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "PS256",
    "access_token_as_jwt": false,
    "grant_types": ["implicit"],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616270,
    "jwks_uri": "https://jenkins-cb.gluu.org/oxauth-client/test/resources/jwks.json",
    "require_auth_time": false,
    "request_object_signing_alg": "PS256",
    "access_token_signing_alg": "RS256",
    "response_types": [
        "token",
        "id_token"
    ]
}

authenticateResourceOwnerAndGrantAccess: Cleaning cookies
authenticateResourceOwnerAndGrantAccess: authorizationRequestUrl:https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=token+id_token&client_id=1ce81583-e7ff-4c67-afd7-58f231d3553c&scope=openid+address&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=5599ddc1-544b-4fee-9fd9-83507451845e&nonce=a8138442-f57c-4935-9806-10553bc77d84&request=ewogICJraWQiIDogIjI5Y2VmNDA0LTU5ZGItNGFiOS04ZjVjLTZkYThkNTc4ZDEwNyIsCiAgInR5cCIgOiAiSldUIiwKICAiYWxnIiA6ICJQUzI1NiIKfQ.ewogICJzY29wZSIgOiBbICJvcGVuaWQiLCAiYWRkcmVzcyIgXSwKICAiY2xhaW1zIiA6IHsKICAgICJpZF90b2tlbiIgOiB7CiAgICAgICJzdHJlZXRfYWRkcmVzcyIgOiB7CiAgICAgICAgImVzc2VudGlhbCIgOiB0cnVlCiAgICAgIH0sCiAgICAgICJjb3VudHJ5IiA6IHsKICAgICAgICAiZXNzZW50aWFsIiA6IHRydWUKICAgICAgfSwKICAgICAgImF1dGhfdGltZSIgOiB7CiAgICAgICAgImVzc2VudGlhbCIgOiB0cnVlCiAgICAgIH0KICAgIH0sCiAgICAidXNlcmluZm8iIDogewogICAgICAic3RyZWV0X2FkZHJlc3MiIDogewogICAgICAgICJlc3NlbnRpYWwiIDogdHJ1ZQogICAgICB9LAogICAgICAiY291bnRyeSIgOiB7CiAgICAgICAgImVzc2VudGlhbCIgOiB0cnVlCiAgICAgIH0KICAgIH0KICB9LAogICJyZXNwb25zZV90eXBlIiA6IFsgInRva2VuIiwgImlkX3Rva2VuIiBdLAogICJyZWRpcmVjdF91cmkiIDogImh0dHBzJTNBJTJGJTJGamVua2lucy1jYi5nbHV1Lm9yZyUyRm94YXV0aC1ycCUyRmhvbWUuaHRtIiwKICAic3RhdGUiIDogIjU1OTlkZGMxLTU0NGItNGZlZS05ZmQ5LTgzNTA3NDUxODQ1ZSIsCiAgIm5vbmNlIiA6ICJhODEzODQ0Mi1mNTdjLTQ5MzUtOTgwNi0xMDU1M2JjNzdkODQiLAogICJjbGllbnRfaWQiIDogIjFjZTgxNTgzLWU3ZmYtNGM2Ny1hZmQ3LTU4ZjIzMWQzNTUzYyIKfQ.4NXmiqoXA0nGg-tTDw4l_To0viS4aHTW5fxk8_UOqsKmFh6IbnbsuhII3vvXS7pgy64aDvfjxOJ0dfyVht8Df51JXU9WKB-kUrTN0iVMJvN-7pm9s0hhO-XK6lX_5GOvvcaaXV3HXvFxpPOicO4NA1W_Ype-raT6xc_RVeOJtUvQhimj0Jpb_uB3Q-QebXyhioruDbTO6zqT5zLEC6EJIYDN-C25zzyNcnznzSRNz0uznapUsw-d39LQszfKbdQJd66QOlD8-RRDzWssi_N8xYPoZuxK7O6FziFJRvH_ZX9th_XBohNO0oXeXJq11FyyQ1AjHp84HD8JoNm3kg3QOg
authenticateResourceOwnerAndGrantAccess: sessionState:c1900aa6d0adb029b07b0fc30f1e94dd640f9304051c926b1645b8637ec8d33d.c2d33507-81f1-4b09-b0d6-ced27c27d072
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=token+id_token&client_id=1ce81583-e7ff-4c67-afd7-58f231d3553c&scope=openid+address&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=5599ddc1-544b-4fee-9fd9-83507451845e&nonce=a8138442-f57c-4935-9806-10553bc77d84&request=ewogICJraWQiIDogIjI5Y2VmNDA0LTU5ZGItNGFiOS04ZjVjLTZkYThkNTc4ZDEwNyIsCiAgInR5cCIgOiAiSldUIiwKICAiYWxnIiA6ICJQUzI1NiIKfQ.ewogICJzY29wZSIgOiBbICJvcGVuaWQiLCAiYWRkcmVzcyIgXSwKICAiY2xhaW1zIiA6IHsKICAgICJpZF90b2tlbiIgOiB7CiAgICAgICJzdHJlZXRfYWRkcmVzcyIgOiB7CiAgICAgICAgImVzc2VudGlhbCIgOiB0cnVlCiAgICAgIH0sCiAgICAgICJjb3VudHJ5IiA6IHsKICAgICAgICAiZXNzZW50aWFsIiA6IHRydWUKICAgICAgfSwKICAgICAgImF1dGhfdGltZSIgOiB7CiAgICAgICAgImVzc2VudGlhbCIgOiB0cnVlCiAgICAgIH0KICAgIH0sCiAgICAidXNlcmluZm8iIDogewogICAgICAic3RyZWV0X2FkZHJlc3MiIDogewogICAgICAgICJlc3NlbnRpYWwiIDogdHJ1ZQogICAgICB9LAogICAgICAiY291bnRyeSIgOiB7CiAgICAgICAgImVzc2VudGlhbCIgOiB0cnVlCiAgICAgIH0KICAgIH0KICB9LAogICJyZXNwb25zZV90eXBlIiA6IFsgInRva2VuIiwgImlkX3Rva2VuIiBdLAogICJyZWRpcmVjdF91cmkiIDogImh0dHBzJTNBJTJGJTJGamVua2lucy1jYi5nbHV1Lm9yZyUyRm94YXV0aC1ycCUyRmhvbWUuaHRtIiwKICAic3RhdGUiIDogIjU1OTlkZGMxLTU0NGItNGZlZS05ZmQ5LTgzNTA3NDUxODQ1ZSIsCiAgIm5vbmNlIiA6ICJhODEzODQ0Mi1mNTdjLTQ5MzUtOTgwNi0xMDU1M2JjNzdkODQiLAogICJjbGllbnRfaWQiIDogIjFjZTgxNTgzLWU3ZmYtNGM2Ny1hZmQ3LTU4ZjIzMWQzNTUzYyIKfQ.4NXmiqoXA0nGg-tTDw4l_To0viS4aHTW5fxk8_UOqsKmFh6IbnbsuhII3vvXS7pgy64aDvfjxOJ0dfyVht8Df51JXU9WKB-kUrTN0iVMJvN-7pm9s0hhO-XK6lX_5GOvvcaaXV3HXvFxpPOicO4NA1W_Ype-raT6xc_RVeOJtUvQhimj0Jpb_uB3Q-QebXyhioruDbTO6zqT5zLEC6EJIYDN-C25zzyNcnznzSRNz0uznapUsw-d39LQszfKbdQJd66QOlD8-RRDzWssi_N8xYPoZuxK7O6FziFJRvH_ZX9th_XBohNO0oXeXJq11FyyQ1AjHp84HD8JoNm3kg3QOg

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm#access_token=ad7b453e-2d4c-400b-bb26-77deeff94471&scope=address+openid&id_token=eyJraWQiOiIwNjc5MmExOS1jZWY3LTQyMGEtOThmNS00M2UyYmM4YTlhMWVfc2lnX3BzMjU2IiwidHlwIjoiSldUIiwiYWxnIjoiUFMyNTYifQ.eyJhdF9oYXNoIjoiVGNoYjU1RnIxMVVkbW5EemZPTk9yUSIsInN1YiI6ImFISHFJSHBSUzhzTFF0Q0dRMkF0SVlMVWNPVlUwd3FQbDhZdDRTeURNazgiLCJzdHJlZXRfYWRkcmVzcyI6IjYyMSBFYXN0IDZ0aCBTdHJlZXQiLCJjb3VudHJ5IjoiVVMiLCJhZGRyZXNzIjp7InN0cmVldF9hZGRyZXNzIjoiNjIxIEVhc3QgNnRoIFN0cmVldCIsImNvdW50cnkiOiJVUyIsImxvY2FsaXR5IjoiQXVzdGluIiwicmVnaW9uIjoiVGV4YXMifSwiaXNzIjoiaHR0cHM6Ly9qZW5raW5zLWNiLmdsdXUub3JnIiwibm9uY2UiOiJhODEzODQ0Mi1mNTdjLTQ5MzUtOTgwNi0xMDU1M2JjNzdkODQiLCJveE9wZW5JRENvbm5lY3RWZXJzaW9uIjoib3BlbmlkY29ubmVjdC0xLjAiLCJhdWQiOiIxY2U4MTU4My1lN2ZmLTRjNjctYWZkNy01OGYyMzFkMzU1M2MiLCJzX2hhc2giOiJ6UXhSbGE5SXVnVUs2ZWk0T3Awb1F3IiwiYXV0aF90aW1lIjoxNTc1NTI5ODcxLCJleHAiOjE1NzU1MzM0NzQsImlhdCI6MTU3NTUyOTg3NH0.ihiPrUyso3kYj2uV1U94hyJ6BC15nsveuTZ01pEDhj9wSs180hyCPSfPQQaEpzxicAp7SG2jbinWwSriZEOG2xjEdhWaz2EDPQ4_ymvOdWTmOGJ_12g0YQtfY5wn3hDqGrQnnjhFutm_ycloJmePoHOJhHl9JqzMmIAXsEEYJpwMlkRYBDg_-eIqYz2afxDO-nrLw4rSGfNya_FAgoO37AgmGlelnCZrcJaqI1cOztss77E_55-5hUhXX5-TSD99vDbB08kjzKf2_E6-__bN5MLq_FltryErYIrVprux-S3qVOEPv0IFtiXFVR8MMp06tOOxw2Z4b8_PCaPYCaNEcQ&session_id=f31103c4-6fff-4d4c-a8b0-c1736fac94f8&state=5599ddc1-544b-4fee-9fd9-83507451845e&token_type=bearer&session_state=c1900aa6d0adb029b07b0fc30f1e94dd640f9304051c926b1645b8637ec8d33d.c2d33507-81f1-4b09-b0d6-ced27c27d072&expires_in=299

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
GET /oxauth/restv1/userinfo HTTP/1.1
Host: jenkins-cb.gluu.org
Authorization: Bearer ad7b453e-2d4c-400b-bb26-77deeff94471

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store, private
Connection: Keep-Alive
Content-Length: 842
Content-Type: application/jwt
Date: Thu, 05 Dec 2019 07:11:14 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

eyJraWQiOiIwNjc5MmExOS1jZWY3LTQyMGEtOThmNS00M2UyYmM4YTlhMWVfc2lnX3BzMjU2IiwidHlwIjoiSldUIiwiYWxnIjoiUFMyNTYifQ.eyJzdWIiOiJhSEhxSUhwUlM4c0xRdENHUTJBdElZTFVjT1ZVMHdxUGw4WXQ0U3lETWs4Iiwic3RyZWV0X2FkZHJlc3MiOiI2MjEgRWFzdCA2dGggU3RyZWV0IiwiY291bnRyeSI6IlVTIiwiYXVkIjoiMWNlODE1ODMtZTdmZi00YzY3LWFmZDctNThmMjMxZDM1NTNjIiwiYWRkcmVzcyI6eyJzdHJlZXRfYWRkcmVzcyI6IjYyMSBFYXN0IDZ0aCBTdHJlZXQiLCJjb3VudHJ5IjoiVVMiLCJsb2NhbGl0eSI6IkF1c3RpbiIsInJlZ2lvbiI6IlRleGFzIn0sImlzcyI6Imh0dHBzOi8vamVua2lucy1jYi5nbHV1Lm9yZyJ9.cLt1PuWjujSRvm2sPtoYl3RuQxgZKhFT74Q4R9_JJgLvYEfpxfNQl23SmdBGtUcj3dPu-LQzyzzeEW3Bf3xJ1DyHzgoGEBkF_miBqLZgOPczowRjclA_mUDgR5cKOOyGQRqmoFhL9Z6l5rNFstMqtIrjuEJTNk1tdFqt-x0kBtIogLqjKfoWhvYDMfRnFrVO62a5uthcjN_WQAsu0ZotU83vXHufGsipSKfygBuHaPG8uLKtGPNXDpnAj0I293P734uzRLojjeKlurlGAitPCe2XE44YpsNJKrTAo4mUZ3xrXoMPf12euLq02A8sJ3k0TfuU0ph-QnuhyTi-J-e4Pw

#######################################################
TEST: authorizationRequestPS384
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "application_type" : "web",
  "oxIncludeClaimsInIdToken" : "true",
  "jwks_uri" : "https://jenkins-cb.gluu.org/oxauth-client/test/resources/jwks.json",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "request_object_signing_alg" : "PS384",
  "sector_identifier_uri" : "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "client_name" : "oxAuth test app",
  "userinfo_signed_response_alg" : "PS384",
  "response_types" : [ "token", "id_token" ],
  "id_token_signed_response_alg" : "PS384"
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1808
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:11:14 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=867a359c-7846-4766-a0b5-ca3b9e1bf0f9",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "3a52898d-2d74-4000-bea7-59e4f00cf1c3",
    "client_id": "867a359c-7846-4766-a0b5-ca3b9e1bf0f9",
    "userinfo_signed_response_alg": "PS384",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "oxd permission user_name clientinfo uma_protection test email super_gluu_ro_session profile phone address org_name openid work_phone",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "9c1741a0-e6f2-4df0-aaff-244eaae3cfa1",
    "client_id_issued_at": 1575529874,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "PS384",
    "access_token_as_jwt": false,
    "grant_types": ["implicit"],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616274,
    "jwks_uri": "https://jenkins-cb.gluu.org/oxauth-client/test/resources/jwks.json",
    "require_auth_time": false,
    "request_object_signing_alg": "PS384",
    "access_token_signing_alg": "RS256",
    "response_types": [
        "token",
        "id_token"
    ]
}

authenticateResourceOwnerAndGrantAccess: Cleaning cookies
authenticateResourceOwnerAndGrantAccess: authorizationRequestUrl:https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=token+id_token&client_id=867a359c-7846-4766-a0b5-ca3b9e1bf0f9&scope=openid+address&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=38243182-72cc-44a4-b2b0-7aad5186a6a8&nonce=3838eacc-537a-4fe5-aca1-1d8ac91e8825&request=ewogICJraWQiIDogIjZiZDdjYzBjLWUxNzYtNGRhOS1iNjQ2LWZlNzc4MjM5M2RjMCIsCiAgInR5cCIgOiAiSldUIiwKICAiYWxnIiA6ICJQUzM4NCIKfQ.ewogICJzY29wZSIgOiBbICJvcGVuaWQiLCAiYWRkcmVzcyIgXSwKICAiY2xhaW1zIiA6IHsKICAgICJpZF90b2tlbiIgOiB7CiAgICAgICJzdHJlZXRfYWRkcmVzcyIgOiB7CiAgICAgICAgImVzc2VudGlhbCIgOiB0cnVlCiAgICAgIH0sCiAgICAgICJjb3VudHJ5IiA6IHsKICAgICAgICAiZXNzZW50aWFsIiA6IHRydWUKICAgICAgfSwKICAgICAgImF1dGhfdGltZSIgOiB7CiAgICAgICAgImVzc2VudGlhbCIgOiB0cnVlCiAgICAgIH0KICAgIH0sCiAgICAidXNlcmluZm8iIDogewogICAgICAic3RyZWV0X2FkZHJlc3MiIDogewogICAgICAgICJlc3NlbnRpYWwiIDogdHJ1ZQogICAgICB9LAogICAgICAiY291bnRyeSIgOiB7CiAgICAgICAgImVzc2VudGlhbCIgOiB0cnVlCiAgICAgIH0KICAgIH0KICB9LAogICJyZXNwb25zZV90eXBlIiA6IFsgInRva2VuIiwgImlkX3Rva2VuIiBdLAogICJyZWRpcmVjdF91cmkiIDogImh0dHBzJTNBJTJGJTJGamVua2lucy1jYi5nbHV1Lm9yZyUyRm94YXV0aC1ycCUyRmhvbWUuaHRtIiwKICAic3RhdGUiIDogIjM4MjQzMTgyLTcyY2MtNDRhNC1iMmIwLTdhYWQ1MTg2YTZhOCIsCiAgIm5vbmNlIiA6ICIzODM4ZWFjYy01MzdhLTRmZTUtYWNhMS0xZDhhYzkxZTg4MjUiLAogICJjbGllbnRfaWQiIDogIjg2N2EzNTljLTc4NDYtNDc2Ni1hMGI1LWNhM2I5ZTFiZjBmOSIKfQ.lvhSS6XpsJJ-uWuT4tLrQYaMsbLjVgwuWmgdjsD6iVzAjHL2fwU9BBZCoMV-fTXgftVlezO7xeoFvDg7dGIuZO_pNbNynUJK6VTf_oIIpDWuR7mMfQ6rl-w_tkoAQm6WzElDW5yHD2kL3Ny77GrB4lfU_YwprQqtirCGbb6NiHlzzCPoibv7awDqfWCfsFrGMB2N7oCsuWW82YOvtCZvJA2BQFeZr8cTNZpm9Va0OFzI6XZzu_uvoCL6fvsv8DFQGrbt1t3xPwRK-5rJpCuw0_PhSZKuCYy9KIo0Dp9nJYp9VGhml2iWKpBP26PB_tAhKiFnnjFgRifkmMPNIbcSkw
authenticateResourceOwnerAndGrantAccess: sessionState:0c6a1fc2de7ffd7510d11db95e35ac6c5e6c4440e1f5d1a7fd6247f4b7971d57.b2eba980-2bad-4551-a81a-3ae3796a5181
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=token+id_token&client_id=867a359c-7846-4766-a0b5-ca3b9e1bf0f9&scope=openid+address&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=38243182-72cc-44a4-b2b0-7aad5186a6a8&nonce=3838eacc-537a-4fe5-aca1-1d8ac91e8825&request=ewogICJraWQiIDogIjZiZDdjYzBjLWUxNzYtNGRhOS1iNjQ2LWZlNzc4MjM5M2RjMCIsCiAgInR5cCIgOiAiSldUIiwKICAiYWxnIiA6ICJQUzM4NCIKfQ.ewogICJzY29wZSIgOiBbICJvcGVuaWQiLCAiYWRkcmVzcyIgXSwKICAiY2xhaW1zIiA6IHsKICAgICJpZF90b2tlbiIgOiB7CiAgICAgICJzdHJlZXRfYWRkcmVzcyIgOiB7CiAgICAgICAgImVzc2VudGlhbCIgOiB0cnVlCiAgICAgIH0sCiAgICAgICJjb3VudHJ5IiA6IHsKICAgICAgICAiZXNzZW50aWFsIiA6IHRydWUKICAgICAgfSwKICAgICAgImF1dGhfdGltZSIgOiB7CiAgICAgICAgImVzc2VudGlhbCIgOiB0cnVlCiAgICAgIH0KICAgIH0sCiAgICAidXNlcmluZm8iIDogewogICAgICAic3RyZWV0X2FkZHJlc3MiIDogewogICAgICAgICJlc3NlbnRpYWwiIDogdHJ1ZQogICAgICB9LAogICAgICAiY291bnRyeSIgOiB7CiAgICAgICAgImVzc2VudGlhbCIgOiB0cnVlCiAgICAgIH0KICAgIH0KICB9LAogICJyZXNwb25zZV90eXBlIiA6IFsgInRva2VuIiwgImlkX3Rva2VuIiBdLAogICJyZWRpcmVjdF91cmkiIDogImh0dHBzJTNBJTJGJTJGamVua2lucy1jYi5nbHV1Lm9yZyUyRm94YXV0aC1ycCUyRmhvbWUuaHRtIiwKICAic3RhdGUiIDogIjM4MjQzMTgyLTcyY2MtNDRhNC1iMmIwLTdhYWQ1MTg2YTZhOCIsCiAgIm5vbmNlIiA6ICIzODM4ZWFjYy01MzdhLTRmZTUtYWNhMS0xZDhhYzkxZTg4MjUiLAogICJjbGllbnRfaWQiIDogIjg2N2EzNTljLTc4NDYtNDc2Ni1hMGI1LWNhM2I5ZTFiZjBmOSIKfQ.lvhSS6XpsJJ-uWuT4tLrQYaMsbLjVgwuWmgdjsD6iVzAjHL2fwU9BBZCoMV-fTXgftVlezO7xeoFvDg7dGIuZO_pNbNynUJK6VTf_oIIpDWuR7mMfQ6rl-w_tkoAQm6WzElDW5yHD2kL3Ny77GrB4lfU_YwprQqtirCGbb6NiHlzzCPoibv7awDqfWCfsFrGMB2N7oCsuWW82YOvtCZvJA2BQFeZr8cTNZpm9Va0OFzI6XZzu_uvoCL6fvsv8DFQGrbt1t3xPwRK-5rJpCuw0_PhSZKuCYy9KIo0Dp9nJYp9VGhml2iWKpBP26PB_tAhKiFnnjFgRifkmMPNIbcSkw

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm#access_token=60c3f288-fdd9-48ad-90e1-6e4fccb1c816&scope=address+openid&id_token=eyJraWQiOiI0ZDU2NDNiNi1hNzAzLTQ1YmYtOGUwOC1hNmNhMGE1ZTgyZDlfc2lnX3BzMzg0IiwidHlwIjoiSldUIiwiYWxnIjoiUFMzODQifQ.eyJhdF9oYXNoIjoiV0xoeW1VbW9GTkxmU0hlV0UzTFBnaVZNbXdCWnZjTjYiLCJzdWIiOiJhSEhxSUhwUlM4c0xRdENHUTJBdElZTFVjT1ZVMHdxUGw4WXQ0U3lETWs4Iiwic3RyZWV0X2FkZHJlc3MiOiI2MjEgRWFzdCA2dGggU3RyZWV0IiwiY291bnRyeSI6IlVTIiwiYWRkcmVzcyI6eyJzdHJlZXRfYWRkcmVzcyI6IjYyMSBFYXN0IDZ0aCBTdHJlZXQiLCJjb3VudHJ5IjoiVVMiLCJsb2NhbGl0eSI6IkF1c3RpbiIsInJlZ2lvbiI6IlRleGFzIn0sImlzcyI6Imh0dHBzOi8vamVua2lucy1jYi5nbHV1Lm9yZyIsIm5vbmNlIjoiMzgzOGVhY2MtNTM3YS00ZmU1LWFjYTEtMWQ4YWM5MWU4ODI1Iiwib3hPcGVuSURDb25uZWN0VmVyc2lvbiI6Im9wZW5pZGNvbm5lY3QtMS4wIiwiYXVkIjoiODY3YTM1OWMtNzg0Ni00NzY2LWEwYjUtY2EzYjllMWJmMGY5Iiwic19oYXNoIjoiY2xNMDAtODdxTzBwMXdXYmhoRTU1UUM5Vzk4U3ZoZ0UiLCJhdXRoX3RpbWUiOjE1NzU1Mjk4NzUsImV4cCI6MTU3NTUzMzQ3OCwiaWF0IjoxNTc1NTI5ODc4fQ.bgkE4ixZVU2Sft-YYugkOAxbqjuHIvd69dHc699OuyUStQu8OeNQc71rE3V6xDgTWAdOR8QDwNBFVqf6LWE-aBJB8746tiMOP6LA6rt4w8DqxeGCgjK6P3-sZnk88E5HAz1hancW5JeMpu5o3PRugASSHKzeccPF1RxFSIx92WYKsJtmWfdhfffHWufFtDDrBPLuVb1BeJC2e1htGNa-46cSE4BAtgL1BA5DpCa0S-vSe0k9FFv1576Ja66wqAc13Lk45fdgQ6kcQR9BGvcu0ZcY5BU4cpjDpnKYBAhNtdaxrAhEkhlk5QvF2LJzhHgiyBzU4k2_VfNqVLwuRDQpKA&session_id=649babba-b345-4ab4-be1d-70bad96a6176&state=38243182-72cc-44a4-b2b0-7aad5186a6a8&token_type=bearer&session_state=0c6a1fc2de7ffd7510d11db95e35ac6c5e6c4440e1f5d1a7fd6247f4b7971d57.b2eba980-2bad-4551-a81a-3ae3796a5181&expires_in=299

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
GET /oxauth/restv1/userinfo HTTP/1.1
Host: jenkins-cb.gluu.org
Authorization: Bearer 60c3f288-fdd9-48ad-90e1-6e4fccb1c816

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store, private
Connection: Keep-Alive
Content-Length: 842
Content-Type: application/jwt
Date: Thu, 05 Dec 2019 07:11:18 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

eyJraWQiOiI0ZDU2NDNiNi1hNzAzLTQ1YmYtOGUwOC1hNmNhMGE1ZTgyZDlfc2lnX3BzMzg0IiwidHlwIjoiSldUIiwiYWxnIjoiUFMzODQifQ.eyJzdWIiOiJhSEhxSUhwUlM4c0xRdENHUTJBdElZTFVjT1ZVMHdxUGw4WXQ0U3lETWs4Iiwic3RyZWV0X2FkZHJlc3MiOiI2MjEgRWFzdCA2dGggU3RyZWV0IiwiY291bnRyeSI6IlVTIiwiYXVkIjoiODY3YTM1OWMtNzg0Ni00NzY2LWEwYjUtY2EzYjllMWJmMGY5IiwiYWRkcmVzcyI6eyJzdHJlZXRfYWRkcmVzcyI6IjYyMSBFYXN0IDZ0aCBTdHJlZXQiLCJjb3VudHJ5IjoiVVMiLCJsb2NhbGl0eSI6IkF1c3RpbiIsInJlZ2lvbiI6IlRleGFzIn0sImlzcyI6Imh0dHBzOi8vamVua2lucy1jYi5nbHV1Lm9yZyJ9.i8Ftggho9b6Ab8S8SRHOO9RaDghyiKlOIOUhIxXDnrejW-IfU5phWY5NfqYDzwmCnItlziW-1J3s1MOswP3IbCUGo4Qh1ywjJMfSTTyZJLtsR824pJQ-rhicrVPHH1pARXL6sahRbrVuCQFfWOP7tDNHa6KpJTjPsFhPLjgVumuNJSUZICA5MGbZCEYan-Irs3Yd192ROeKTwYJw_6Vr8L5NiDNQWKU-b2LLeXJFk4MD1Cs0ga3ASCKtWbC_SlKSECXourbHdRZQ5ITTli9Ohdn61ckQxdGm-xdbkARQH2wjJ7oTBHyZ5haV31X_tPAdWuyJeW_E8xDQUOgkA35nPw

#######################################################
TEST: authorizationRequestPS512
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "application_type" : "web",
  "oxIncludeClaimsInIdToken" : "true",
  "jwks_uri" : "https://jenkins-cb.gluu.org/oxauth-client/test/resources/jwks.json",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "request_object_signing_alg" : "PS512",
  "sector_identifier_uri" : "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "client_name" : "oxAuth test app",
  "userinfo_signed_response_alg" : "PS512",
  "response_types" : [ "token", "id_token" ],
  "id_token_signed_response_alg" : "PS512"
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1808
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:11:18 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=1cf7cece-dc9e-4380-a67e-fce55b9c53b4",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "5c76b4eb-5b07-436f-8898-77941f929049",
    "client_id": "1cf7cece-dc9e-4380-a67e-fce55b9c53b4",
    "userinfo_signed_response_alg": "PS512",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "test user_name clientinfo profile super_gluu_ro_session oxd uma_protection email org_name phone address work_phone permission openid",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "d2b47342-d3e1-4d3d-a739-0489153a0965",
    "client_id_issued_at": 1575529878,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "PS512",
    "access_token_as_jwt": false,
    "grant_types": ["implicit"],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616278,
    "jwks_uri": "https://jenkins-cb.gluu.org/oxauth-client/test/resources/jwks.json",
    "require_auth_time": false,
    "request_object_signing_alg": "PS512",
    "access_token_signing_alg": "RS256",
    "response_types": [
        "token",
        "id_token"
    ]
}

authenticateResourceOwnerAndGrantAccess: Cleaning cookies
authenticateResourceOwnerAndGrantAccess: authorizationRequestUrl:https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=token+id_token&client_id=1cf7cece-dc9e-4380-a67e-fce55b9c53b4&scope=openid+address&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=9a68a16f-2be0-4e16-aefd-f5d226c947ff&nonce=40b98f83-b3bb-4fd4-a992-134c8f8cbf55&request=ewogICJraWQiIDogImE2MTRkNmFlLWU4MGYtNDY5YS1hMzA0LTUxYjliYmVmYzk1ZiIsCiAgInR5cCIgOiAiSldUIiwKICAiYWxnIiA6ICJQUzUxMiIKfQ.ewogICJzY29wZSIgOiBbICJvcGVuaWQiLCAiYWRkcmVzcyIgXSwKICAiY2xhaW1zIiA6IHsKICAgICJpZF90b2tlbiIgOiB7CiAgICAgICJzdHJlZXRfYWRkcmVzcyIgOiB7CiAgICAgICAgImVzc2VudGlhbCIgOiB0cnVlCiAgICAgIH0sCiAgICAgICJjb3VudHJ5IiA6IHsKICAgICAgICAiZXNzZW50aWFsIiA6IHRydWUKICAgICAgfSwKICAgICAgImF1dGhfdGltZSIgOiB7CiAgICAgICAgImVzc2VudGlhbCIgOiB0cnVlCiAgICAgIH0KICAgIH0sCiAgICAidXNlcmluZm8iIDogewogICAgICAic3RyZWV0X2FkZHJlc3MiIDogewogICAgICAgICJlc3NlbnRpYWwiIDogdHJ1ZQogICAgICB9LAogICAgICAiY291bnRyeSIgOiB7CiAgICAgICAgImVzc2VudGlhbCIgOiB0cnVlCiAgICAgIH0KICAgIH0KICB9LAogICJyZXNwb25zZV90eXBlIiA6IFsgInRva2VuIiwgImlkX3Rva2VuIiBdLAogICJyZWRpcmVjdF91cmkiIDogImh0dHBzJTNBJTJGJTJGamVua2lucy1jYi5nbHV1Lm9yZyUyRm94YXV0aC1ycCUyRmhvbWUuaHRtIiwKICAic3RhdGUiIDogIjlhNjhhMTZmLTJiZTAtNGUxNi1hZWZkLWY1ZDIyNmM5NDdmZiIsCiAgIm5vbmNlIiA6ICI0MGI5OGY4My1iM2JiLTRmZDQtYTk5Mi0xMzRjOGY4Y2JmNTUiLAogICJjbGllbnRfaWQiIDogIjFjZjdjZWNlLWRjOWUtNDM4MC1hNjdlLWZjZTU1YjljNTNiNCIKfQ.PCAXvIcNYEGIXcfImmZBKhnlnp78MwTO9otESnUTBMgN8QeMH8CXot1Xacb0EA_vgEHq6Oq8gS80lsY6KIVaTbeTAUZ-NoLReTORWN0oP3UmjASSQp9WcZD7T7Dv238akdHPXDXiBrDaACOsh6YqOUMOaWvl8zsjW1quu_KQejDXPehDofm6qpypEVXit6E9ZxqCGkYXlUHJtUW-SBvUI06RIyv3KbiH6MBN2rPMmbOJVxtIzfa8u1lxu3ALNgVgjWPzr23d0NUdEbM1dksL9RD7uVCaxLVvIBkfmkxAA0UbxLzl9KdFuYw7BT2RUOmfGCUxznn_ojVMMKvaZPrcng
authenticateResourceOwnerAndGrantAccess: sessionState:2628f955ce02b9359f18b7ad01756dcfd3c54c7b45c7fe9218468953aa16b8c0.43fb5160-2f56-4b73-8f70-a547d5454b7e
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=token+id_token&client_id=1cf7cece-dc9e-4380-a67e-fce55b9c53b4&scope=openid+address&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=9a68a16f-2be0-4e16-aefd-f5d226c947ff&nonce=40b98f83-b3bb-4fd4-a992-134c8f8cbf55&request=ewogICJraWQiIDogImE2MTRkNmFlLWU4MGYtNDY5YS1hMzA0LTUxYjliYmVmYzk1ZiIsCiAgInR5cCIgOiAiSldUIiwKICAiYWxnIiA6ICJQUzUxMiIKfQ.ewogICJzY29wZSIgOiBbICJvcGVuaWQiLCAiYWRkcmVzcyIgXSwKICAiY2xhaW1zIiA6IHsKICAgICJpZF90b2tlbiIgOiB7CiAgICAgICJzdHJlZXRfYWRkcmVzcyIgOiB7CiAgICAgICAgImVzc2VudGlhbCIgOiB0cnVlCiAgICAgIH0sCiAgICAgICJjb3VudHJ5IiA6IHsKICAgICAgICAiZXNzZW50aWFsIiA6IHRydWUKICAgICAgfSwKICAgICAgImF1dGhfdGltZSIgOiB7CiAgICAgICAgImVzc2VudGlhbCIgOiB0cnVlCiAgICAgIH0KICAgIH0sCiAgICAidXNlcmluZm8iIDogewogICAgICAic3RyZWV0X2FkZHJlc3MiIDogewogICAgICAgICJlc3NlbnRpYWwiIDogdHJ1ZQogICAgICB9LAogICAgICAiY291bnRyeSIgOiB7CiAgICAgICAgImVzc2VudGlhbCIgOiB0cnVlCiAgICAgIH0KICAgIH0KICB9LAogICJyZXNwb25zZV90eXBlIiA6IFsgInRva2VuIiwgImlkX3Rva2VuIiBdLAogICJyZWRpcmVjdF91cmkiIDogImh0dHBzJTNBJTJGJTJGamVua2lucy1jYi5nbHV1Lm9yZyUyRm94YXV0aC1ycCUyRmhvbWUuaHRtIiwKICAic3RhdGUiIDogIjlhNjhhMTZmLTJiZTAtNGUxNi1hZWZkLWY1ZDIyNmM5NDdmZiIsCiAgIm5vbmNlIiA6ICI0MGI5OGY4My1iM2JiLTRmZDQtYTk5Mi0xMzRjOGY4Y2JmNTUiLAogICJjbGllbnRfaWQiIDogIjFjZjdjZWNlLWRjOWUtNDM4MC1hNjdlLWZjZTU1YjljNTNiNCIKfQ.PCAXvIcNYEGIXcfImmZBKhnlnp78MwTO9otESnUTBMgN8QeMH8CXot1Xacb0EA_vgEHq6Oq8gS80lsY6KIVaTbeTAUZ-NoLReTORWN0oP3UmjASSQp9WcZD7T7Dv238akdHPXDXiBrDaACOsh6YqOUMOaWvl8zsjW1quu_KQejDXPehDofm6qpypEVXit6E9ZxqCGkYXlUHJtUW-SBvUI06RIyv3KbiH6MBN2rPMmbOJVxtIzfa8u1lxu3ALNgVgjWPzr23d0NUdEbM1dksL9RD7uVCaxLVvIBkfmkxAA0UbxLzl9KdFuYw7BT2RUOmfGCUxznn_ojVMMKvaZPrcng

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm#access_token=514d8e47-baf6-49ab-9d5e-885241f40a8c&scope=address+openid&id_token=eyJraWQiOiJhODM1OTc5OS05OTRhLTQxZDYtOGIzMy0yY2FlMjY5MzQ0ZjVfc2lnX3BzNTEyIiwidHlwIjoiSldUIiwiYWxnIjoiUFM1MTIifQ.eyJhdF9oYXNoIjoiZEhncDdORVpGTjN6QXlLblNfNXJ6MndCbnFJamFWVHE3Y3BYTnk1WkhCTSIsInN1YiI6ImFISHFJSHBSUzhzTFF0Q0dRMkF0SVlMVWNPVlUwd3FQbDhZdDRTeURNazgiLCJzdHJlZXRfYWRkcmVzcyI6IjYyMSBFYXN0IDZ0aCBTdHJlZXQiLCJjb3VudHJ5IjoiVVMiLCJhZGRyZXNzIjp7InN0cmVldF9hZGRyZXNzIjoiNjIxIEVhc3QgNnRoIFN0cmVldCIsImNvdW50cnkiOiJVUyIsImxvY2FsaXR5IjoiQXVzdGluIiwicmVnaW9uIjoiVGV4YXMifSwiaXNzIjoiaHR0cHM6Ly9qZW5raW5zLWNiLmdsdXUub3JnIiwibm9uY2UiOiI0MGI5OGY4My1iM2JiLTRmZDQtYTk5Mi0xMzRjOGY4Y2JmNTUiLCJveE9wZW5JRENvbm5lY3RWZXJzaW9uIjoib3BlbmlkY29ubmVjdC0xLjAiLCJhdWQiOiIxY2Y3Y2VjZS1kYzllLTQzODAtYTY3ZS1mY2U1NWI5YzUzYjQiLCJzX2hhc2giOiJIYnk3bE9kUFBuSVBvajE2LWlxbm1vWEVjVExGSDA2NzNDZk5QZkpBSDBVIiwiYXV0aF90aW1lIjoxNTc1NTI5ODc5LCJleHAiOjE1NzU1MzM0ODIsImlhdCI6MTU3NTUyOTg4Mn0.fgbWHAWUDtb7Gwx-TT3_i8BXjGPP8MPgvQUAdm0DzT113FIM5TyetknZEYFwuj_39l0b367ime7roX62BsM_zLUA5JF2H9GdmRkuStnoK3R_RaHE4xPP8JXjg1JEOwJw83UZTgqlbYf3-nm289kN7xFb2wDC4lKoECaqmSU05QBs5YwneGrTE1aJJ0RuitBP02-HDBZABBEVB_wtuDycozr6V4u-bZW_ovvuYe9gTlxBphy_JLDl-XcXkgnHp2ExvikpmFnjw4si-1zDR4TjWDqaER4JJ4b2ZPEXD2ZIctIs6DEC3tMb704Ksd4COy01I-EYddF3CTYCsSaMGtHfFw&session_id=a3739043-350d-4524-a71d-a55ec6b51830&state=9a68a16f-2be0-4e16-aefd-f5d226c947ff&token_type=bearer&session_state=2628f955ce02b9359f18b7ad01756dcfd3c54c7b45c7fe9218468953aa16b8c0.43fb5160-2f56-4b73-8f70-a547d5454b7e&expires_in=299

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
GET /oxauth/restv1/userinfo HTTP/1.1
Host: jenkins-cb.gluu.org
Authorization: Bearer 514d8e47-baf6-49ab-9d5e-885241f40a8c

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store, private
Connection: Keep-Alive
Content-Length: 842
Content-Type: application/jwt
Date: Thu, 05 Dec 2019 07:11:22 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

eyJraWQiOiJhODM1OTc5OS05OTRhLTQxZDYtOGIzMy0yY2FlMjY5MzQ0ZjVfc2lnX3BzNTEyIiwidHlwIjoiSldUIiwiYWxnIjoiUFM1MTIifQ.eyJzdWIiOiJhSEhxSUhwUlM4c0xRdENHUTJBdElZTFVjT1ZVMHdxUGw4WXQ0U3lETWs4Iiwic3RyZWV0X2FkZHJlc3MiOiI2MjEgRWFzdCA2dGggU3RyZWV0IiwiY291bnRyeSI6IlVTIiwiYXVkIjoiMWNmN2NlY2UtZGM5ZS00MzgwLWE2N2UtZmNlNTViOWM1M2I0IiwiYWRkcmVzcyI6eyJzdHJlZXRfYWRkcmVzcyI6IjYyMSBFYXN0IDZ0aCBTdHJlZXQiLCJjb3VudHJ5IjoiVVMiLCJsb2NhbGl0eSI6IkF1c3RpbiIsInJlZ2lvbiI6IlRleGFzIn0sImlzcyI6Imh0dHBzOi8vamVua2lucy1jYi5nbHV1Lm9yZyJ9.FKa5jfTi7XTDVMBkanWjxJzX54jls6IBgXAEovENgH57_I_BtIHiFUWZ5grmRaxD1yWeGJ_fA9TdSc2ANMS2T1X_bWinQBGR3UnU5I3MOkZOckFQs5PlwXWEpaNiakIaqmk3sgqIWso4ulSHoXb3kcTQcDEcmrMialLFqrbmxH17NcF11Rdubx3RtZpMAgzefxv3bDuYPxb4Ik1lJnly1ZNwlCzqkgSWEKp9gDzhiYcGob61xbinKrOWAMB2Z6ZKc4ft6idwA1-8QxUcKgnU8Wip6ubGyxd00S6oHwSxG-SEphf1grzZebSOlsZAFYaU2w3FYRWWuJqURQHZP6uosQ

#######################################################
TEST: authorizationRequestRS256
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "application_type" : "web",
  "oxIncludeClaimsInIdToken" : "true",
  "jwks_uri" : "https://jenkins-cb.gluu.org/oxauth-client/test/resources/jwks.json",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "request_object_signing_alg" : "RS256",
  "sector_identifier_uri" : "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "client_name" : "oxAuth test app",
  "userinfo_signed_response_alg" : "RS256",
  "response_types" : [ "token", "id_token" ],
  "id_token_signed_response_alg" : "RS256"
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1808
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:11:22 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=46183c7c-8ce3-4da1-b21a-aa9d1bf7c416",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "8a1354b7-0570-4404-93fa-a9b2fdf1a2be",
    "client_id": "46183c7c-8ce3-4da1-b21a-aa9d1bf7c416",
    "userinfo_signed_response_alg": "RS256",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "phone oxd uma_protection test permission email address org_name profile work_phone user_name openid super_gluu_ro_session clientinfo",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "f42ab1a4-2d48-4a97-ab46-e1bbb9c88667",
    "client_id_issued_at": 1575529882,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": ["implicit"],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616282,
    "jwks_uri": "https://jenkins-cb.gluu.org/oxauth-client/test/resources/jwks.json",
    "require_auth_time": false,
    "request_object_signing_alg": "RS256",
    "access_token_signing_alg": "RS256",
    "response_types": [
        "token",
        "id_token"
    ]
}

authenticateResourceOwnerAndGrantAccess: Cleaning cookies
authenticateResourceOwnerAndGrantAccess: authorizationRequestUrl:https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=token+id_token&client_id=46183c7c-8ce3-4da1-b21a-aa9d1bf7c416&scope=openid+address&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=46cd7c93-7a7e-4b61-b846-76713d480424&nonce=8f3b4b49-e43c-46d2-858a-477f72cf8e87&request=ewogICJraWQiIDogIjZmYjE4NTlhLTU0ZDktNDdjNi1hMjkzLTkyY2UyY2VlNjNlMCIsCiAgInR5cCIgOiAiSldUIiwKICAiYWxnIiA6ICJSUzI1NiIKfQ.ewogICJzY29wZSIgOiBbICJvcGVuaWQiLCAiYWRkcmVzcyIgXSwKICAiY2xhaW1zIiA6IHsKICAgICJpZF90b2tlbiIgOiB7CiAgICAgICJzdHJlZXRfYWRkcmVzcyIgOiB7CiAgICAgICAgImVzc2VudGlhbCIgOiB0cnVlCiAgICAgIH0sCiAgICAgICJjb3VudHJ5IiA6IHsKICAgICAgICAiZXNzZW50aWFsIiA6IHRydWUKICAgICAgfSwKICAgICAgImF1dGhfdGltZSIgOiB7CiAgICAgICAgImVzc2VudGlhbCIgOiB0cnVlCiAgICAgIH0KICAgIH0sCiAgICAidXNlcmluZm8iIDogewogICAgICAic3RyZWV0X2FkZHJlc3MiIDogewogICAgICAgICJlc3NlbnRpYWwiIDogdHJ1ZQogICAgICB9LAogICAgICAiY291bnRyeSIgOiB7CiAgICAgICAgImVzc2VudGlhbCIgOiB0cnVlCiAgICAgIH0KICAgIH0KICB9LAogICJyZXNwb25zZV90eXBlIiA6IFsgInRva2VuIiwgImlkX3Rva2VuIiBdLAogICJyZWRpcmVjdF91cmkiIDogImh0dHBzJTNBJTJGJTJGamVua2lucy1jYi5nbHV1Lm9yZyUyRm94YXV0aC1ycCUyRmhvbWUuaHRtIiwKICAic3RhdGUiIDogIjQ2Y2Q3YzkzLTdhN2UtNGI2MS1iODQ2LTc2NzEzZDQ4MDQyNCIsCiAgIm5vbmNlIiA6ICI4ZjNiNGI0OS1lNDNjLTQ2ZDItODU4YS00NzdmNzJjZjhlODciLAogICJjbGllbnRfaWQiIDogIjQ2MTgzYzdjLThjZTMtNGRhMS1iMjFhLWFhOWQxYmY3YzQxNiIKfQ.dVGUdMKg5C-3sHQgxPHl5cUTLPv-BPhEES6UGzfkQzOC-2YbDyjhJP-ctEdJfcMwqsbCuPGabiJS4suyreJE4jou95KQs8GfVCB_5_pK5tzK3CXr-X-WvyJl3fWfeOEOqYlic4IFAp_0lMcCVqNQCurDFSeTUIZX_fMwb-NyvA4H01bGad_CKWuAoXoeNk9ZOr__HYAyEv5OjuTwu5OL5_RmEc2ouuFmcp6McTb649-V69CMDb7JN-pVLcNkCWo4mhX4tw0FL-y_YHvRICgOHv9NrXo0JI7CbDf9a3dfI_Cm6BNfBPRQOZbqXfxKsrcLTlkRcPxZmaUAwFIsPAyUPw
authenticateResourceOwnerAndGrantAccess: sessionState:e4f768ff9ee0d2419c3a47132d608d29f18dd76753ccbc22948b9ab4d6069c66.32054dae-61bf-4912-a253-cf0971198644
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=token+id_token&client_id=46183c7c-8ce3-4da1-b21a-aa9d1bf7c416&scope=openid+address&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=46cd7c93-7a7e-4b61-b846-76713d480424&nonce=8f3b4b49-e43c-46d2-858a-477f72cf8e87&request=ewogICJraWQiIDogIjZmYjE4NTlhLTU0ZDktNDdjNi1hMjkzLTkyY2UyY2VlNjNlMCIsCiAgInR5cCIgOiAiSldUIiwKICAiYWxnIiA6ICJSUzI1NiIKfQ.ewogICJzY29wZSIgOiBbICJvcGVuaWQiLCAiYWRkcmVzcyIgXSwKICAiY2xhaW1zIiA6IHsKICAgICJpZF90b2tlbiIgOiB7CiAgICAgICJzdHJlZXRfYWRkcmVzcyIgOiB7CiAgICAgICAgImVzc2VudGlhbCIgOiB0cnVlCiAgICAgIH0sCiAgICAgICJjb3VudHJ5IiA6IHsKICAgICAgICAiZXNzZW50aWFsIiA6IHRydWUKICAgICAgfSwKICAgICAgImF1dGhfdGltZSIgOiB7CiAgICAgICAgImVzc2VudGlhbCIgOiB0cnVlCiAgICAgIH0KICAgIH0sCiAgICAidXNlcmluZm8iIDogewogICAgICAic3RyZWV0X2FkZHJlc3MiIDogewogICAgICAgICJlc3NlbnRpYWwiIDogdHJ1ZQogICAgICB9LAogICAgICAiY291bnRyeSIgOiB7CiAgICAgICAgImVzc2VudGlhbCIgOiB0cnVlCiAgICAgIH0KICAgIH0KICB9LAogICJyZXNwb25zZV90eXBlIiA6IFsgInRva2VuIiwgImlkX3Rva2VuIiBdLAogICJyZWRpcmVjdF91cmkiIDogImh0dHBzJTNBJTJGJTJGamVua2lucy1jYi5nbHV1Lm9yZyUyRm94YXV0aC1ycCUyRmhvbWUuaHRtIiwKICAic3RhdGUiIDogIjQ2Y2Q3YzkzLTdhN2UtNGI2MS1iODQ2LTc2NzEzZDQ4MDQyNCIsCiAgIm5vbmNlIiA6ICI4ZjNiNGI0OS1lNDNjLTQ2ZDItODU4YS00NzdmNzJjZjhlODciLAogICJjbGllbnRfaWQiIDogIjQ2MTgzYzdjLThjZTMtNGRhMS1iMjFhLWFhOWQxYmY3YzQxNiIKfQ.dVGUdMKg5C-3sHQgxPHl5cUTLPv-BPhEES6UGzfkQzOC-2YbDyjhJP-ctEdJfcMwqsbCuPGabiJS4suyreJE4jou95KQs8GfVCB_5_pK5tzK3CXr-X-WvyJl3fWfeOEOqYlic4IFAp_0lMcCVqNQCurDFSeTUIZX_fMwb-NyvA4H01bGad_CKWuAoXoeNk9ZOr__HYAyEv5OjuTwu5OL5_RmEc2ouuFmcp6McTb649-V69CMDb7JN-pVLcNkCWo4mhX4tw0FL-y_YHvRICgOHv9NrXo0JI7CbDf9a3dfI_Cm6BNfBPRQOZbqXfxKsrcLTlkRcPxZmaUAwFIsPAyUPw

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm#access_token=e5288d6d-9a5f-44ed-a7ac-970c77b8d77f&scope=address+openid&id_token=eyJraWQiOiI5MjA3MzdmZC1mYWQ3LTQxNzAtOWU0OS00Y2Q2Yjc1N2EyNTRfc2lnX3JzMjU2IiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJhdF9oYXNoIjoiRlQ3U1RaZnM3Sm5odktwR2ZWNnVMQSIsInN1YiI6ImFISHFJSHBSUzhzTFF0Q0dRMkF0SVlMVWNPVlUwd3FQbDhZdDRTeURNazgiLCJzdHJlZXRfYWRkcmVzcyI6IjYyMSBFYXN0IDZ0aCBTdHJlZXQiLCJjb3VudHJ5IjoiVVMiLCJhZGRyZXNzIjp7InN0cmVldF9hZGRyZXNzIjoiNjIxIEVhc3QgNnRoIFN0cmVldCIsImNvdW50cnkiOiJVUyIsImxvY2FsaXR5IjoiQXVzdGluIiwicmVnaW9uIjoiVGV4YXMifSwiaXNzIjoiaHR0cHM6Ly9qZW5raW5zLWNiLmdsdXUub3JnIiwibm9uY2UiOiI4ZjNiNGI0OS1lNDNjLTQ2ZDItODU4YS00NzdmNzJjZjhlODciLCJveE9wZW5JRENvbm5lY3RWZXJzaW9uIjoib3BlbmlkY29ubmVjdC0xLjAiLCJhdWQiOiI0NjE4M2M3Yy04Y2UzLTRkYTEtYjIxYS1hYTlkMWJmN2M0MTYiLCJzX2hhc2giOiJWR0JOSUNCdklYc2ZkSkJUdm1LbEx3IiwiYXV0aF90aW1lIjoxNTc1NTI5ODgzLCJleHAiOjE1NzU1MzM0ODYsImlhdCI6MTU3NTUyOTg4Nn0.jT71ScxDiv2ZqIiCWOk6zjaGRIYOMyk2PyLf0bLk0K7DGl0ZvZ_ju6FZoRs4Nbo1ND2l49ut8d2_reS_T0owHRd6z_QHGjPW_-QWzH1HXDpWtQ9JRMdWChiyn7VqnkMAqiOtNwawNaxlgJJC45czVmQqJLE-NUtwibJ2gkw0GiReLoD10fyeZNYK7wm3-HDEgc1t0ZRT6ZSW7GTYlzny44mCWgDP8E4U19q5hdEK4KOroOYPeBhUOpuPidax2XERYy3ffv1FQBntielbOVBc1dux4d24JrQE4pC6G2MGmgFnIm6EXCLKh271snnSQsizvGVSNAR72zJI-oakRPb82A&session_id=51c80cc9-cf51-4fbf-9b40-b68cb231905b&state=46cd7c93-7a7e-4b61-b846-76713d480424&token_type=bearer&session_state=e4f768ff9ee0d2419c3a47132d608d29f18dd76753ccbc22948b9ab4d6069c66.32054dae-61bf-4912-a253-cf0971198644&expires_in=299

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
GET /oxauth/restv1/userinfo HTTP/1.1
Host: jenkins-cb.gluu.org
Authorization: Bearer e5288d6d-9a5f-44ed-a7ac-970c77b8d77f

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store, private
Connection: Keep-Alive
Content-Length: 842
Content-Type: application/jwt
Date: Thu, 05 Dec 2019 07:11:26 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

eyJraWQiOiI5MjA3MzdmZC1mYWQ3LTQxNzAtOWU0OS00Y2Q2Yjc1N2EyNTRfc2lnX3JzMjU2IiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJhSEhxSUhwUlM4c0xRdENHUTJBdElZTFVjT1ZVMHdxUGw4WXQ0U3lETWs4Iiwic3RyZWV0X2FkZHJlc3MiOiI2MjEgRWFzdCA2dGggU3RyZWV0IiwiY291bnRyeSI6IlVTIiwiYXVkIjoiNDYxODNjN2MtOGNlMy00ZGExLWIyMWEtYWE5ZDFiZjdjNDE2IiwiYWRkcmVzcyI6eyJzdHJlZXRfYWRkcmVzcyI6IjYyMSBFYXN0IDZ0aCBTdHJlZXQiLCJjb3VudHJ5IjoiVVMiLCJsb2NhbGl0eSI6IkF1c3RpbiIsInJlZ2lvbiI6IlRleGFzIn0sImlzcyI6Imh0dHBzOi8vamVua2lucy1jYi5nbHV1Lm9yZyJ9.iz1Dv2m88a7E-o5C1qjcQwt0g_GmHHq4qs-LY2vyoUYcPxUar3USPLDB3xRZn9FquEiCrN4pvEMHQGjzzi68zadJ8hs0fDQA9SmQd0ESwjfJfKp0ZRvPTwTO4RiX6sM0lqBaQVXd6q9E61Uv2c9CSCIJ_4v4n4fYgPWuzMeHgZ2aFLaB4-2vQCdbXMHWpS_YaYH76MXpLrHv08VnFzYCQ9xrjSuAXhA2Bucvd0BwJy38fnYuH8H0RqDWRI2pYHUq0j8-68nUSq0kG6lmkzVrD9swjRoKlmvS-H2TwqbxD0hdBCYlEd0EadjmtBGFS-TO8uV6CJvXQL_SsfZc0civhg

#######################################################
TEST: authorizationRequestRS384
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "application_type" : "web",
  "oxIncludeClaimsInIdToken" : "true",
  "jwks_uri" : "https://jenkins-cb.gluu.org/oxauth-client/test/resources/jwks.json",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "request_object_signing_alg" : "RS384",
  "sector_identifier_uri" : "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "client_name" : "oxAuth test app",
  "userinfo_signed_response_alg" : "RS384",
  "response_types" : [ "token", "id_token" ],
  "id_token_signed_response_alg" : "RS384"
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1808
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:11:26 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=a8a50709-63e7-4f22-ad32-6a557ba7d06a",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "2409ac6c-19be-4b3d-8ffc-315b38fcf37f",
    "client_id": "a8a50709-63e7-4f22-ad32-6a557ba7d06a",
    "userinfo_signed_response_alg": "RS384",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "user_name clientinfo profile super_gluu_ro_session oxd uma_protection email org_name work_phone test address permission phone openid",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "430f6d37-2ef3-4fa1-92a1-0f3ade62a7d3",
    "client_id_issued_at": 1575529886,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS384",
    "access_token_as_jwt": false,
    "grant_types": ["implicit"],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616286,
    "jwks_uri": "https://jenkins-cb.gluu.org/oxauth-client/test/resources/jwks.json",
    "require_auth_time": false,
    "request_object_signing_alg": "RS384",
    "access_token_signing_alg": "RS256",
    "response_types": [
        "token",
        "id_token"
    ]
}

authenticateResourceOwnerAndGrantAccess: Cleaning cookies
authenticateResourceOwnerAndGrantAccess: authorizationRequestUrl:https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=token+id_token&client_id=a8a50709-63e7-4f22-ad32-6a557ba7d06a&scope=openid+address&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=26d15998-65bd-44ef-8a3f-879ead01f1a5&nonce=7c16ea4b-dd44-45cd-b530-09919154679c&request=ewogICJraWQiIDogImE2OGM2MWRkLWY4ZjYtNGZhZi04NTViLWZiYmI4YmVlMDI4YSIsCiAgInR5cCIgOiAiSldUIiwKICAiYWxnIiA6ICJSUzM4NCIKfQ.ewogICJzY29wZSIgOiBbICJvcGVuaWQiLCAiYWRkcmVzcyIgXSwKICAiY2xhaW1zIiA6IHsKICAgICJpZF90b2tlbiIgOiB7CiAgICAgICJzdHJlZXRfYWRkcmVzcyIgOiB7CiAgICAgICAgImVzc2VudGlhbCIgOiB0cnVlCiAgICAgIH0sCiAgICAgICJjb3VudHJ5IiA6IHsKICAgICAgICAiZXNzZW50aWFsIiA6IHRydWUKICAgICAgfSwKICAgICAgImF1dGhfdGltZSIgOiB7CiAgICAgICAgImVzc2VudGlhbCIgOiB0cnVlCiAgICAgIH0KICAgIH0sCiAgICAidXNlcmluZm8iIDogewogICAgICAic3RyZWV0X2FkZHJlc3MiIDogewogICAgICAgICJlc3NlbnRpYWwiIDogdHJ1ZQogICAgICB9LAogICAgICAiY291bnRyeSIgOiB7CiAgICAgICAgImVzc2VudGlhbCIgOiB0cnVlCiAgICAgIH0KICAgIH0KICB9LAogICJyZXNwb25zZV90eXBlIiA6IFsgInRva2VuIiwgImlkX3Rva2VuIiBdLAogICJyZWRpcmVjdF91cmkiIDogImh0dHBzJTNBJTJGJTJGamVua2lucy1jYi5nbHV1Lm9yZyUyRm94YXV0aC1ycCUyRmhvbWUuaHRtIiwKICAic3RhdGUiIDogIjI2ZDE1OTk4LTY1YmQtNDRlZi04YTNmLTg3OWVhZDAxZjFhNSIsCiAgIm5vbmNlIiA6ICI3YzE2ZWE0Yi1kZDQ0LTQ1Y2QtYjUzMC0wOTkxOTE1NDY3OWMiLAogICJjbGllbnRfaWQiIDogImE4YTUwNzA5LTYzZTctNGYyMi1hZDMyLTZhNTU3YmE3ZDA2YSIKfQ.EO72aNK3Cu-wS5UqBF7-3fDXaDfbsewpJP6Or68Sg_ra7Zomh-seSqp-H7MB_idfiu_pwnTo4_JDbgriAc6edikqKN6wrvnJ6BLpKNDoEhy8AAfZmJPZAzi387Ie_0u_-_FMfLm5qHwRhTBgesfL1BIPOwnSxYwQYS9q-tMI4ihiJogNnCea6_sf3x2rwqnXFokQQzUNiffO2sCevVxW2R5LOCsZaELBJmN6bXJYYINBKva2QdgGmwnuJ31pISEXZb2-vJ5IYxODF_3wkV7-Iu8ANsuIqXEfQnQZBPypiwacFxrygrOVhyVCikVhT9HndAj0otcAHsuvjoqhlflk5A
authenticateResourceOwnerAndGrantAccess: sessionState:c9f01a9b1d57c986f0e469f219dd26a3958594d5cb89a4b3a4de2697d5d12050.565d1cbb-ddda-4946-b75b-e37d17aee08f
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=token+id_token&client_id=a8a50709-63e7-4f22-ad32-6a557ba7d06a&scope=openid+address&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=26d15998-65bd-44ef-8a3f-879ead01f1a5&nonce=7c16ea4b-dd44-45cd-b530-09919154679c&request=ewogICJraWQiIDogImE2OGM2MWRkLWY4ZjYtNGZhZi04NTViLWZiYmI4YmVlMDI4YSIsCiAgInR5cCIgOiAiSldUIiwKICAiYWxnIiA6ICJSUzM4NCIKfQ.ewogICJzY29wZSIgOiBbICJvcGVuaWQiLCAiYWRkcmVzcyIgXSwKICAiY2xhaW1zIiA6IHsKICAgICJpZF90b2tlbiIgOiB7CiAgICAgICJzdHJlZXRfYWRkcmVzcyIgOiB7CiAgICAgICAgImVzc2VudGlhbCIgOiB0cnVlCiAgICAgIH0sCiAgICAgICJjb3VudHJ5IiA6IHsKICAgICAgICAiZXNzZW50aWFsIiA6IHRydWUKICAgICAgfSwKICAgICAgImF1dGhfdGltZSIgOiB7CiAgICAgICAgImVzc2VudGlhbCIgOiB0cnVlCiAgICAgIH0KICAgIH0sCiAgICAidXNlcmluZm8iIDogewogICAgICAic3RyZWV0X2FkZHJlc3MiIDogewogICAgICAgICJlc3NlbnRpYWwiIDogdHJ1ZQogICAgICB9LAogICAgICAiY291bnRyeSIgOiB7CiAgICAgICAgImVzc2VudGlhbCIgOiB0cnVlCiAgICAgIH0KICAgIH0KICB9LAogICJyZXNwb25zZV90eXBlIiA6IFsgInRva2VuIiwgImlkX3Rva2VuIiBdLAogICJyZWRpcmVjdF91cmkiIDogImh0dHBzJTNBJTJGJTJGamVua2lucy1jYi5nbHV1Lm9yZyUyRm94YXV0aC1ycCUyRmhvbWUuaHRtIiwKICAic3RhdGUiIDogIjI2ZDE1OTk4LTY1YmQtNDRlZi04YTNmLTg3OWVhZDAxZjFhNSIsCiAgIm5vbmNlIiA6ICI3YzE2ZWE0Yi1kZDQ0LTQ1Y2QtYjUzMC0wOTkxOTE1NDY3OWMiLAogICJjbGllbnRfaWQiIDogImE4YTUwNzA5LTYzZTctNGYyMi1hZDMyLTZhNTU3YmE3ZDA2YSIKfQ.EO72aNK3Cu-wS5UqBF7-3fDXaDfbsewpJP6Or68Sg_ra7Zomh-seSqp-H7MB_idfiu_pwnTo4_JDbgriAc6edikqKN6wrvnJ6BLpKNDoEhy8AAfZmJPZAzi387Ie_0u_-_FMfLm5qHwRhTBgesfL1BIPOwnSxYwQYS9q-tMI4ihiJogNnCea6_sf3x2rwqnXFokQQzUNiffO2sCevVxW2R5LOCsZaELBJmN6bXJYYINBKva2QdgGmwnuJ31pISEXZb2-vJ5IYxODF_3wkV7-Iu8ANsuIqXEfQnQZBPypiwacFxrygrOVhyVCikVhT9HndAj0otcAHsuvjoqhlflk5A

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm#access_token=d9d46938-aa83-45ed-bcd3-2074684fa1d1&scope=address+openid&id_token=eyJraWQiOiI1OGY4MDNlMC03OGFhLTQ0MDAtYWYwYi1jYjViZDQxNmI0Yzdfc2lnX3JzMzg0IiwidHlwIjoiSldUIiwiYWxnIjoiUlMzODQifQ.eyJhdF9oYXNoIjoibmY2VXdKRzJGTnNaOE1TcHNKam5GZHZDU0VVMlV4UDYiLCJzdWIiOiJhSEhxSUhwUlM4c0xRdENHUTJBdElZTFVjT1ZVMHdxUGw4WXQ0U3lETWs4Iiwic3RyZWV0X2FkZHJlc3MiOiI2MjEgRWFzdCA2dGggU3RyZWV0IiwiY291bnRyeSI6IlVTIiwiYWRkcmVzcyI6eyJzdHJlZXRfYWRkcmVzcyI6IjYyMSBFYXN0IDZ0aCBTdHJlZXQiLCJjb3VudHJ5IjoiVVMiLCJsb2NhbGl0eSI6IkF1c3RpbiIsInJlZ2lvbiI6IlRleGFzIn0sImlzcyI6Imh0dHBzOi8vamVua2lucy1jYi5nbHV1Lm9yZyIsIm5vbmNlIjoiN2MxNmVhNGItZGQ0NC00NWNkLWI1MzAtMDk5MTkxNTQ2NzljIiwib3hPcGVuSURDb25uZWN0VmVyc2lvbiI6Im9wZW5pZGNvbm5lY3QtMS4wIiwiYXVkIjoiYThhNTA3MDktNjNlNy00ZjIyLWFkMzItNmE1NTdiYTdkMDZhIiwic19oYXNoIjoiblJtbFAwSDJhZDE0LXBUT0gwTWwzWWFWb2laZUtDdjQiLCJhdXRoX3RpbWUiOjE1NzU1Mjk4ODcsImV4cCI6MTU3NTUzMzQ5MCwiaWF0IjoxNTc1NTI5ODkwfQ.c5a9EiMiKqFDDxaEFZkZTnNGLmL7Y7tHYDvOyqdQdzJE8P4l5OE12kVvjLMZSYpyyyiPXkoUD8aVyYuXgk6jLJ39VJD6VR_CgnoZ4EOkl4lnAhn2kI6mfsW3F7nypRCmNI1qhIOFlwcQViUcFFnXsOtCEtnS8AUYg1BtvOeEWvifYqAnEm1le61GU2i21sRk6q9tKgNgDWBVdjxIcZFSdeo8cUYwZfeHFzA4G371xmguG3Y2drWMTyXlArhCDh24Lh9V9rTtL7ykPN35tgqHOvb9bty_XzIMv-ZK4WFyh8K5DYUKBP8cTP_0PUJv9iy5xzpU-n_Bt7nPhDIaIACnkQ&session_id=e4d50f40-b0b6-4e13-afb4-2b6ddf403d7f&state=26d15998-65bd-44ef-8a3f-879ead01f1a5&token_type=bearer&session_state=c9f01a9b1d57c986f0e469f219dd26a3958594d5cb89a4b3a4de2697d5d12050.565d1cbb-ddda-4946-b75b-e37d17aee08f&expires_in=299

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
GET /oxauth/restv1/userinfo HTTP/1.1
Host: jenkins-cb.gluu.org
Authorization: Bearer d9d46938-aa83-45ed-bcd3-2074684fa1d1

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store, private
Connection: Keep-Alive
Content-Length: 842
Content-Type: application/jwt
Date: Thu, 05 Dec 2019 07:11:30 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

eyJraWQiOiI1OGY4MDNlMC03OGFhLTQ0MDAtYWYwYi1jYjViZDQxNmI0Yzdfc2lnX3JzMzg0IiwidHlwIjoiSldUIiwiYWxnIjoiUlMzODQifQ.eyJzdWIiOiJhSEhxSUhwUlM4c0xRdENHUTJBdElZTFVjT1ZVMHdxUGw4WXQ0U3lETWs4Iiwic3RyZWV0X2FkZHJlc3MiOiI2MjEgRWFzdCA2dGggU3RyZWV0IiwiY291bnRyeSI6IlVTIiwiYXVkIjoiYThhNTA3MDktNjNlNy00ZjIyLWFkMzItNmE1NTdiYTdkMDZhIiwiYWRkcmVzcyI6eyJzdHJlZXRfYWRkcmVzcyI6IjYyMSBFYXN0IDZ0aCBTdHJlZXQiLCJjb3VudHJ5IjoiVVMiLCJsb2NhbGl0eSI6IkF1c3RpbiIsInJlZ2lvbiI6IlRleGFzIn0sImlzcyI6Imh0dHBzOi8vamVua2lucy1jYi5nbHV1Lm9yZyJ9.bM6S8O6bqho94BrddyXBfHIO_fc-CW8HQXLRRNO14dtBTtAAigADPUhThMue_S6yXWl5V13Z3DZkAF0CBT7FH_7nHB8typ4_aENa4mfQtPTlnFvskC9j8q4gEplkT_-_Llzl6UyFbLtOzeVH-YaZC4qXEqHAbaN2TFK6h34RYDdc91xgWLDJ6ckhyuKx5t-hMj86ckYxBoM7y1y9eIC59zHQjlPknfgomuo85sQj-8iUcvQUIlh8GH-i5bcEJE7IK9vXWng-HTpmDyZxloaLfyBQWFa7QPy1hXdwZa28zs1FEziGV2CxhVVUzHM5utiNj3kb1WAufN-loFfahL7eBw

#######################################################
TEST: authorizationRequestRS512
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "application_type" : "web",
  "oxIncludeClaimsInIdToken" : "true",
  "jwks_uri" : "https://jenkins-cb.gluu.org/oxauth-client/test/resources/jwks.json",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "request_object_signing_alg" : "RS512",
  "sector_identifier_uri" : "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "client_name" : "oxAuth test app",
  "userinfo_signed_response_alg" : "RS512",
  "response_types" : [ "token", "id_token" ],
  "id_token_signed_response_alg" : "RS512"
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1808
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:11:30 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=f46f55e3-e2c3-401e-b037-283a3636b235",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "d78e2e5f-0bb9-409e-b18d-7272f72e720c",
    "client_id": "f46f55e3-e2c3-401e-b037-283a3636b235",
    "userinfo_signed_response_alg": "RS512",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "openid clientinfo user_name oxd test phone email profile work_phone super_gluu_ro_session org_name address permission uma_protection",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "0d72e067-e38d-4eb0-a562-381dff72cd8c",
    "client_id_issued_at": 1575529890,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS512",
    "access_token_as_jwt": false,
    "grant_types": ["implicit"],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616290,
    "jwks_uri": "https://jenkins-cb.gluu.org/oxauth-client/test/resources/jwks.json",
    "require_auth_time": false,
    "request_object_signing_alg": "RS512",
    "access_token_signing_alg": "RS256",
    "response_types": [
        "token",
        "id_token"
    ]
}

authenticateResourceOwnerAndGrantAccess: Cleaning cookies
authenticateResourceOwnerAndGrantAccess: authorizationRequestUrl:https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=token+id_token&client_id=f46f55e3-e2c3-401e-b037-283a3636b235&scope=openid+address&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=fad05e21-d2f3-49e2-8cac-f63003098e77&nonce=763e30fb-5c18-46de-bb93-38235a861b98&request=ewogICJraWQiIDogIjc5ZDEyZTY2LTBiYWEtNGI1OS04YThiLWJkMzE2NDI2MGJmNSIsCiAgInR5cCIgOiAiSldUIiwKICAiYWxnIiA6ICJSUzUxMiIKfQ.ewogICJzY29wZSIgOiBbICJvcGVuaWQiLCAiYWRkcmVzcyIgXSwKICAiY2xhaW1zIiA6IHsKICAgICJpZF90b2tlbiIgOiB7CiAgICAgICJzdHJlZXRfYWRkcmVzcyIgOiB7CiAgICAgICAgImVzc2VudGlhbCIgOiB0cnVlCiAgICAgIH0sCiAgICAgICJjb3VudHJ5IiA6IHsKICAgICAgICAiZXNzZW50aWFsIiA6IHRydWUKICAgICAgfSwKICAgICAgImF1dGhfdGltZSIgOiB7CiAgICAgICAgImVzc2VudGlhbCIgOiB0cnVlCiAgICAgIH0KICAgIH0sCiAgICAidXNlcmluZm8iIDogewogICAgICAic3RyZWV0X2FkZHJlc3MiIDogewogICAgICAgICJlc3NlbnRpYWwiIDogdHJ1ZQogICAgICB9LAogICAgICAiY291bnRyeSIgOiB7CiAgICAgICAgImVzc2VudGlhbCIgOiB0cnVlCiAgICAgIH0KICAgIH0KICB9LAogICJyZXNwb25zZV90eXBlIiA6IFsgInRva2VuIiwgImlkX3Rva2VuIiBdLAogICJyZWRpcmVjdF91cmkiIDogImh0dHBzJTNBJTJGJTJGamVua2lucy1jYi5nbHV1Lm9yZyUyRm94YXV0aC1ycCUyRmhvbWUuaHRtIiwKICAic3RhdGUiIDogImZhZDA1ZTIxLWQyZjMtNDllMi04Y2FjLWY2MzAwMzA5OGU3NyIsCiAgIm5vbmNlIiA6ICI3NjNlMzBmYi01YzE4LTQ2ZGUtYmI5My0zODIzNWE4NjFiOTgiLAogICJjbGllbnRfaWQiIDogImY0NmY1NWUzLWUyYzMtNDAxZS1iMDM3LTI4M2EzNjM2YjIzNSIKfQ.eXb9cAAtCUdd9e8dUPHaWVg5oTTbWnaJ5__fG7H7hxfXg2qkXq9uiF4zMm4yUNIrMTFm3M0yklbjE99rx9oylCVyv_kUodxtQhXCjNkepG_b8oWemzk2a6DSVh4qJ_uHmBz98rqIuR6Vb5BH9eavSyJ54rhyBGn8fS60qmMEh6G5A82M8Agfs-GnTCf38fjeJu8R8xYAWI0f_ILltsCX4j26Hfm0-oURSzLUMkdKpFCxcK539mhiVcuU-6PIL9knHlMNFLoRAua87j3VRKKtS7g7rND2kQ1BPXx96nfr5lL6wPAqIya6VhWkb33x42ybRNIs-oKmIIBEr-E20Ckigg
authenticateResourceOwnerAndGrantAccess: sessionState:116326c4f5479d9c7e166e9c3af7ac94eca80309edf73e43a9620a2bcf8db5c6.866f921c-4297-421d-9944-9da3f8e6c611
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=token+id_token&client_id=f46f55e3-e2c3-401e-b037-283a3636b235&scope=openid+address&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=fad05e21-d2f3-49e2-8cac-f63003098e77&nonce=763e30fb-5c18-46de-bb93-38235a861b98&request=ewogICJraWQiIDogIjc5ZDEyZTY2LTBiYWEtNGI1OS04YThiLWJkMzE2NDI2MGJmNSIsCiAgInR5cCIgOiAiSldUIiwKICAiYWxnIiA6ICJSUzUxMiIKfQ.ewogICJzY29wZSIgOiBbICJvcGVuaWQiLCAiYWRkcmVzcyIgXSwKICAiY2xhaW1zIiA6IHsKICAgICJpZF90b2tlbiIgOiB7CiAgICAgICJzdHJlZXRfYWRkcmVzcyIgOiB7CiAgICAgICAgImVzc2VudGlhbCIgOiB0cnVlCiAgICAgIH0sCiAgICAgICJjb3VudHJ5IiA6IHsKICAgICAgICAiZXNzZW50aWFsIiA6IHRydWUKICAgICAgfSwKICAgICAgImF1dGhfdGltZSIgOiB7CiAgICAgICAgImVzc2VudGlhbCIgOiB0cnVlCiAgICAgIH0KICAgIH0sCiAgICAidXNlcmluZm8iIDogewogICAgICAic3RyZWV0X2FkZHJlc3MiIDogewogICAgICAgICJlc3NlbnRpYWwiIDogdHJ1ZQogICAgICB9LAogICAgICAiY291bnRyeSIgOiB7CiAgICAgICAgImVzc2VudGlhbCIgOiB0cnVlCiAgICAgIH0KICAgIH0KICB9LAogICJyZXNwb25zZV90eXBlIiA6IFsgInRva2VuIiwgImlkX3Rva2VuIiBdLAogICJyZWRpcmVjdF91cmkiIDogImh0dHBzJTNBJTJGJTJGamVua2lucy1jYi5nbHV1Lm9yZyUyRm94YXV0aC1ycCUyRmhvbWUuaHRtIiwKICAic3RhdGUiIDogImZhZDA1ZTIxLWQyZjMtNDllMi04Y2FjLWY2MzAwMzA5OGU3NyIsCiAgIm5vbmNlIiA6ICI3NjNlMzBmYi01YzE4LTQ2ZGUtYmI5My0zODIzNWE4NjFiOTgiLAogICJjbGllbnRfaWQiIDogImY0NmY1NWUzLWUyYzMtNDAxZS1iMDM3LTI4M2EzNjM2YjIzNSIKfQ.eXb9cAAtCUdd9e8dUPHaWVg5oTTbWnaJ5__fG7H7hxfXg2qkXq9uiF4zMm4yUNIrMTFm3M0yklbjE99rx9oylCVyv_kUodxtQhXCjNkepG_b8oWemzk2a6DSVh4qJ_uHmBz98rqIuR6Vb5BH9eavSyJ54rhyBGn8fS60qmMEh6G5A82M8Agfs-GnTCf38fjeJu8R8xYAWI0f_ILltsCX4j26Hfm0-oURSzLUMkdKpFCxcK539mhiVcuU-6PIL9knHlMNFLoRAua87j3VRKKtS7g7rND2kQ1BPXx96nfr5lL6wPAqIya6VhWkb33x42ybRNIs-oKmIIBEr-E20Ckigg

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm#access_token=bfa18b33-17ee-4eff-8449-12c86ed18480&scope=address+openid&id_token=eyJraWQiOiI1YWFmMzBlYy05MTg4LTQwNWMtOTU5NC1mN2Q5NzcyZTQwMmNfc2lnX3JzNTEyIiwidHlwIjoiSldUIiwiYWxnIjoiUlM1MTIifQ.eyJhdF9oYXNoIjoiQWxUcm53bGUtZFNPX3BObFU1aThxYnZub0JRcE1nTUNnd1ZtVS1BRGJuUSIsInN1YiI6ImFISHFJSHBSUzhzTFF0Q0dRMkF0SVlMVWNPVlUwd3FQbDhZdDRTeURNazgiLCJzdHJlZXRfYWRkcmVzcyI6IjYyMSBFYXN0IDZ0aCBTdHJlZXQiLCJjb3VudHJ5IjoiVVMiLCJhZGRyZXNzIjp7InN0cmVldF9hZGRyZXNzIjoiNjIxIEVhc3QgNnRoIFN0cmVldCIsImNvdW50cnkiOiJVUyIsImxvY2FsaXR5IjoiQXVzdGluIiwicmVnaW9uIjoiVGV4YXMifSwiaXNzIjoiaHR0cHM6Ly9qZW5raW5zLWNiLmdsdXUub3JnIiwibm9uY2UiOiI3NjNlMzBmYi01YzE4LTQ2ZGUtYmI5My0zODIzNWE4NjFiOTgiLCJveE9wZW5JRENvbm5lY3RWZXJzaW9uIjoib3BlbmlkY29ubmVjdC0xLjAiLCJhdWQiOiJmNDZmNTVlMy1lMmMzLTQwMWUtYjAzNy0yODNhMzYzNmIyMzUiLCJzX2hhc2giOiJtZEhBY1paRWM2dExfQThtUzFQazdjNlZWYUxEaVNuT01zLVF2Q1pZUVpjIiwiYXV0aF90aW1lIjoxNTc1NTI5ODkxLCJleHAiOjE1NzU1MzM0OTQsImlhdCI6MTU3NTUyOTg5NH0.MuwPGZTuYISUQYVt9j0-TdBr9WmbQGF2R_cTfUvXYMwku-AcvqgnUIjN3npXXWize_hMR2M39nEpazOHnlUHqW8FuQfh3xp5--AJo-eVYiQCF0A71J5FjF5l9PnOoXwI7-B4iS3HbZsO9jalmEYU_NclMi-Pe3cA9OPW6DEbRIVIg9AfcvG0iG7kv1XrY09furjnedFPfyWna2ebMOM7fT18WL1ChCE_biwlnrodUVB_6W5QMe7frLrOZY5GVPdUFSUrH_vKDXIZhWnIZrb-xROM8neIqKicTBGybFa_ToeVGeS17ouqlAdspCWEFguRK76b8UdPsF8QoBYo8AS7nQ&session_id=03058973-af0e-4245-8e85-c5adc4493461&state=fad05e21-d2f3-49e2-8cac-f63003098e77&token_type=bearer&session_state=116326c4f5479d9c7e166e9c3af7ac94eca80309edf73e43a9620a2bcf8db5c6.866f921c-4297-421d-9944-9da3f8e6c611&expires_in=299

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
GET /oxauth/restv1/userinfo HTTP/1.1
Host: jenkins-cb.gluu.org
Authorization: Bearer bfa18b33-17ee-4eff-8449-12c86ed18480

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store, private
Connection: Keep-Alive
Content-Length: 842
Content-Type: application/jwt
Date: Thu, 05 Dec 2019 07:11:34 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

eyJraWQiOiI1YWFmMzBlYy05MTg4LTQwNWMtOTU5NC1mN2Q5NzcyZTQwMmNfc2lnX3JzNTEyIiwidHlwIjoiSldUIiwiYWxnIjoiUlM1MTIifQ.eyJzdWIiOiJhSEhxSUhwUlM4c0xRdENHUTJBdElZTFVjT1ZVMHdxUGw4WXQ0U3lETWs4Iiwic3RyZWV0X2FkZHJlc3MiOiI2MjEgRWFzdCA2dGggU3RyZWV0IiwiY291bnRyeSI6IlVTIiwiYXVkIjoiZjQ2ZjU1ZTMtZTJjMy00MDFlLWIwMzctMjgzYTM2MzZiMjM1IiwiYWRkcmVzcyI6eyJzdHJlZXRfYWRkcmVzcyI6IjYyMSBFYXN0IDZ0aCBTdHJlZXQiLCJjb3VudHJ5IjoiVVMiLCJsb2NhbGl0eSI6IkF1c3RpbiIsInJlZ2lvbiI6IlRleGFzIn0sImlzcyI6Imh0dHBzOi8vamVua2lucy1jYi5nbHV1Lm9yZyJ9.Z6uteoDQ2byQpJHXb7wrT681bh2k-5R8Uj25nI9zoJ73cKi4Hu3xIT31d2QJ0fOcXJ3YTN-zjeg9K4U292dPaq-SSJHg0Y6ZAfUfK4EzfcGWrhwtuxmDGSwjpOtW8HCV1Om9J0fIsjfU0vMFkfe2mr6B26Bb1BZnfZTu8l-x7yQCz218759-mjEvBfGfHPO98Q4fbhlB5v1Fhd0Gb8eifKuHzmf0S5MZ1fpIKHrsajpN7xCKUcx7aQz_3WFDnCwNHiWqAdzT5wYO6FkWgSO3UqFc-lHNeH8NqjGMYgQMql1Rt0jxS3uMa0RsrSY3d73XWOvSS2Xm-_YnCHH-Mqk7Lg

#######################################################
TEST: OpenID Connect Discovery
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
GET /.well-known/webfinger?resource=acct%3Atest_user%40jenkins-cb.gluu.org&rel=http%3A%2F%2Fopenid.net%2Fspecs%2Fconnect%2F1.0%2Fissuer HTTP/1.1
Host: jenkins-cb.gluu.org

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Connection: Keep-Alive
Content-Length: 187
Content-Type: application/jrd+json;charset=iso-8859-1
Date: Thu, 05 Dec 2019 07:11:34 GMT
Keep-Alive: timeout=5, max=100
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "subject": "acct:test_user@jenkins-cb.gluu.org",
    "links": [{
        "rel": "http://openid.net/specs/connect/1.0/issuer",
        "href": "https://jenkins-cb.gluu.org"
    }]
}


OpenID Connect Configuration
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
GET /.well-known/openid-configuration HTTP/1.1
Host: jenkins-cb.gluu.org

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Connection: Keep-Alive
Content-Length: 5934
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:11:34 GMT
Keep-Alive: timeout=5, max=100
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
  "request_parameter_supported" : true,
  "token_revocation_endpoint" : "https://jenkins-cb.gluu.org/oxauth/restv1/revoke",
  "introspection_endpoint" : "https://jenkins-cb.gluu.org/oxauth/restv1/introspection",
  "claims_parameter_supported" : true,
  "check_session_iframe" : "https://jenkins-cb.gluu.org/oxauth/opiframe.htm",
  "scopes_supported" : [ "address", "https://jenkins-cb.gluu.org/oxauth/restv1/uma/scopes/scim_access", "test", "clientinfo", "user_name", "openid", "profile", "uma_protection", "https://jenkins-cb.gluu.org/oxauth/restv1/uma/scopes/passport_access", "http://photoz.example.com/dev/scopes/view", "work_phone", "permission", "http://photoz.example.com/dev/scopes/all", "modify", "oxtrust-api-write", "oxtrust-api-read", "phone", "mobile_phone", "oxd", "org_name", "super_gluu_ro_session", "email" ],
  "issuer" : "https://jenkins-cb.gluu.org",
  "acr_values_supported" : [ "simple_password_auth", "basic_lock", "basic" ],
  "userinfo_encryption_enc_values_supported" : [ "RSA1_5", "RSA-OAEP", "A128KW", "A256KW" ],
  "id_token_encryption_enc_values_supported" : [ "A128CBC+HS256", "A256CBC+HS512", "A128GCM", "A256GCM" ],
  "authorization_endpoint" : "https://jenkins-cb.gluu.org/oxauth/restv1/authorize",
  "service_documentation" : "http://gluu.org/docs",
  "request_object_encryption_enc_values_supported" : [ "A128CBC+HS256", "A256CBC+HS512", "A128GCM", "A256GCM" ],
  "display_values_supported" : [ "page", "popup" ],
  "id_generation_endpoint" : "https://jenkins-cb.gluu.org/oxauth/restv1/id",
  "userinfo_signing_alg_values_supported" : [ "HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "ES256", "ES384", "ES512" ],
  "claims_supported" : [ "oxAuthRedirectURI", "street_address", "country", "zoneinfo", "birthdate", "gender", "formatted", "user_name", "oxAuthIdTokenSignedResponseAlg", "oxAuthScope", "work_phone", "phone_mobile_number", "preferred_username", "inum", "locale", "oxAuthAppType", "updated_at", "nickname", "member_of", "org_name", "email", "website", "email_verified", "profile", "locality", "phone_number_verified", "given_name", "middle_name", "picture", "name", "phone_number", "postal_code", "region", "family_name" ],
  "scope_to_claims_mapping" : [ {
    "https://jenkins-cb.gluu.org/oxauth/restv1/uma/scopes/passport_access" : [ ]
  }, {
    "clientinfo" : [ "name", "inum", "oxAuthAppType", "oxAuthIdTokenSignedResponseAlg", "oxAuthRedirectURI", "oxAuthScope" ]
  }, {
    "profile" : [ "name", "family_name", "given_name", "middle_name", "nickname", "preferred_username", "profile", "picture", "website", "gender", "birthdate", "zoneinfo", "locale", "updated_at" ]
  }, {
    "address" : [ "formatted", "postal_code", "street_address", "locality", "country", "region" ]
  }, {
    "oxd" : [ ]
  }, {
    "modify" : [ ]
  }, {
    "email" : [ "email_verified", "email" ]
  }, {
    "https://jenkins-cb.gluu.org/oxauth/restv1/uma/scopes/scim_access" : [ ]
  }, {
    "phone" : [ "phone_number_verified", "phone_number" ]
  }, {
    "user_name" : [ "user_name" ]
  }, {
    "openid" : [ ]
  }, {
    "test" : [ "member_of" ]
  }, {
    "http://photoz.example.com/dev/scopes/view" : [ ]
  }, {
    "oxtrust-api-write" : [ ]
  }, {
    "org_name" : [ "org_name" ]
  }, {
    "uma_protection" : [ ]
  }, {
    "permission" : [ ]
  }, {
    "oxtrust-api-read" : [ ]
  }, {
    "super_gluu_ro_session" : [ ]
  }, {
    "mobile_phone" : [ "phone_mobile_number" ]
  }, {
    "work_phone" : [ "work_phone" ]
  }, {
    "http://photoz.example.com/dev/scopes/all" : [ ]
  } ],
  "claim_types_supported" : [ "normal" ],
  "op_policy_uri" : "http://ox.gluu.org/doku.php?id=oxauth:policy",
  "token_endpoint_auth_methods_supported" : [ "client_secret_basic", "client_secret_post", "client_secret_jwt", "private_key_jwt" ],
  "tls_client_certificate_bound_access_tokens" : true,
  "response_modes_supported" : [ "fragment", "query", "form_post" ],
  "token_endpoint" : "https://jenkins-cb.gluu.org/oxauth/restv1/token",
  "response_types_supported" : [ "code", "code token id_token", "token", "code token", "id_token", "code id_token", "token id_token" ],
  "request_uri_parameter_supported" : true,
  "userinfo_encryption_alg_values_supported" : [ "RSA1_5", "RSA-OAEP", "A128KW", "A256KW" ],
  "grant_types_supported" : [ "client_credentials", "refresh_token", "authorization_code", "password", "urn:ietf:params:oauth:grant-type:uma-ticket", "implicit" ],
  "end_session_endpoint" : "https://jenkins-cb.gluu.org/oxauth/restv1/end_session",
  "ui_locales_supported" : [ "en", "es" ],
  "userinfo_endpoint" : "https://jenkins-cb.gluu.org/oxauth/restv1/userinfo",
  "token_endpoint_auth_signing_alg_values_supported" : [ "HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "ES256", "ES384", "ES512" ],
  "op_tos_uri" : "http://ox.gluu.org/doku.php?id=oxauth:tos",
  "frontchannel_logout_supported" : true,
  "auth_level_mapping" : {
    "-1" : [ "simple_password_auth" ],
    "20" : [ "basic_lock" ],
    "10" : [ "basic" ]
  },
  "require_request_uri_registration" : false,
  "id_token_encryption_alg_values_supported" : [ "RSA1_5", "RSA-OAEP", "A128KW", "A256KW" ],
  "jwks_uri" : "https://jenkins-cb.gluu.org/oxauth/restv1/jwks",
  "frontchannel_logout_session_supported" : true,
  "subject_types_supported" : [ "public", "pairwise" ],
  "id_token_signing_alg_values_supported" : [ "none", "HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "ES256", "ES384", "ES512" ],
  "registration_endpoint" : "https://jenkins-cb.gluu.org/oxauth/restv1/register",
  "claims_locales_supported" : [ "en" ],
  "clientinfo_endpoint" : "https://jenkins-cb.gluu.org/oxauth/restv1/clientinfo",
  "request_object_signing_alg_values_supported" : [ "none", "HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "ES256", "ES384", "ES512" ],
  "request_object_encryption_alg_values_supported" : [ "RSA1_5", "RSA-OAEP", "A128KW", "A256KW" ],
  "id_token_token_binding_cnf_values_supported" : [ "tbh" ]
}


#######################################################
TEST: applicationTypeNativeSubjectTypePairwise
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "subject_type" : "pairwise",
  "application_type" : "native",
  "scope" : "openid profile address email user_name",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "sector_identifier_uri" : "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "client_name" : "oxAuth test app",
  "response_types" : [ "code", "id_token" ]
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1628
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:11:34 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "native",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=d6f8c1dc-c4f8-4ae1-a3e2-0f049d6beb77",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "2bcb7b12-9c3e-45d8-8112-3a9e16a964a6",
    "client_id": "d6f8c1dc-c4f8-4ae1-a3e2-0f049d6beb77",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "address profile email user_name openid",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "7ecb386c-287d-48d8-a82a-d95449ca942f",
    "client_id_issued_at": 1575529894,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": [
        "refresh_token",
        "authorization_code",
        "implicit"
    ],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616294,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": [
        "code",
        "token",
        "id_token"
    ]
}

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
GET /oxauth/restv1/register?{ } HTTP/1.1
Host: jenkins-cb.gluu.org
Authorization: Bearer 2bcb7b12-9c3e-45d8-8112-3a9e16a964a6

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1628
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:11:34 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "native",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=d6f8c1dc-c4f8-4ae1-a3e2-0f049d6beb77",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "2bcb7b12-9c3e-45d8-8112-3a9e16a964a6",
    "client_id": "d6f8c1dc-c4f8-4ae1-a3e2-0f049d6beb77",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "address profile email user_name openid",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "7ecb386c-287d-48d8-a82a-d95449ca942f",
    "client_id_issued_at": 1575529894,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": [
        "refresh_token",
        "authorization_code",
        "implicit"
    ],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616294,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": [
        "code",
        "token",
        "id_token"
    ]
}

authenticateResourceOwnerAndGrantAccess: Cleaning cookies
authenticateResourceOwnerAndGrantAccess: authorizationRequestUrl:https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=code+id_token&client_id=d6f8c1dc-c4f8-4ae1-a3e2-0f049d6beb77&scope=openid+profile+address+email+user_name&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=988a086e-74fa-4b81-8bea-ceb6bbe12123&nonce=d998a377-b1ba-4648-928a-bbbe8c4735a9
authenticateResourceOwnerAndGrantAccess: sessionState:5c3f23c08515920ee38f2ec1c0016b92f941cf31ea22c1402ae58b379f3a95a7.28cf758b-8f87-4946-9245-b5ad73215495
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=code+id_token&client_id=d6f8c1dc-c4f8-4ae1-a3e2-0f049d6beb77&scope=openid+profile+address+email+user_name&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=988a086e-74fa-4b81-8bea-ceb6bbe12123&nonce=d998a377-b1ba-4648-928a-bbbe8c4735a9

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm#code=6dac0c32-efb5-4410-936e-71f9941bbe7c&scope=address+openid+user_name+profile+email&id_token=eyJraWQiOiI5MjA3MzdmZC1mYWQ3LTQxNzAtOWU0OS00Y2Q2Yjc1N2EyNTRfc2lnX3JzMjU2IiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJhdWQiOiJkNmY4YzFkYy1jNGY4LTRhZTEtYTNlMi0wZjA0OWQ2YmViNzciLCJjX2hhc2giOiJpYVZtMXROZ3licG9BclhkR1p0NGtBIiwic3ViIjoiYUhIcUlIcFJTOHNMUXRDR1EyQXRJWUxVY09WVTB3cVBsOFl0NFN5RE1rOCIsInNfaGFzaCI6ImVFRUdaR0w1Q1plQmhFal9IVHpwd0EiLCJhdXRoX3RpbWUiOjE1NzU1Mjk4OTUsImlzcyI6Imh0dHBzOi8vamVua2lucy1jYi5nbHV1Lm9yZyIsImV4cCI6MTU3NTUzMzQ5OCwiaWF0IjoxNTc1NTI5ODk4LCJub25jZSI6ImQ5OThhMzc3LWIxYmEtNDY0OC05MjhhLWJiYmU4YzQ3MzVhOSIsIm94T3BlbklEQ29ubmVjdFZlcnNpb24iOiJvcGVuaWRjb25uZWN0LTEuMCJ9.d3Bcos09Wqd7w2Bvu6D3nOqjTH9pxLa6h2ho0EEUNber2cnQQ57Wga-F4kJybaf21NO2vUWT1koTESnezWaxOfIE_MMfKYP3fiAwCwDFCci7uRzg_42I8uDbG2RRHE6nZfKXp6JqOP67dv00ugGNVUdpE7pOV4PRM9uGD1hCmW0bXJWKLDyGD3FqWMLeJbYLPEztybud-QjL82cfQ9_koaIDCSrYpdjPPjFdrcCtRoe9O0pWM-qK6G8SL5Ihk92nWUYsjCkqO11fsygef7ZSX5AduM6DE_t1ztruAxR7qGHL4jTXwBbb2l0MrKwc5l9dFjthVIWFV1G1S7gUfISSkw&session_id=09ccbfdd-b7b9-4afd-88d7-a2d4940672a6&state=988a086e-74fa-4b81-8bea-ceb6bbe12123&session_state=5c3f23c08515920ee38f2ec1c0016b92f941cf31ea22c1402ae58b379f3a95a7.28cf758b-8f87-4946-9245-b5ad73215495

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/token HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Host: jenkins-cb.gluu.org
Authorization: Basic ZDZmOGMxZGMtYzRmOC00YWUxLWEzZTItMGYwNDlkNmJlYjc3OjdlY2IzODZjLTI4N2QtNDhkOC1hODJhLWQ5NTQ0OWNhOTQyZg==

grant_type=authorization_code&code=6dac0c32-efb5-4410-936e-71f9941bbe7c&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1041
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:11:38 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{"access_token":"9c8cdbc2-bf24-4237-b658-35a2f7c16136","refresh_token":"17a6b73b-5730-4fdc-b098-001a3f8b9f79","id_token":"eyJraWQiOiI5MjA3MzdmZC1mYWQ3LTQxNzAtOWU0OS00Y2Q2Yjc1N2EyNTRfc2lnX3JzMjU2IiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJhdF9oYXNoIjoiN3lLMXlMZzAyWjlkOGVtQ0VVenl0ZyIsImF1ZCI6ImQ2ZjhjMWRjLWM0ZjgtNGFlMS1hM2UyLTBmMDQ5ZDZiZWI3NyIsInN1YiI6ImFISHFJSHBSUzhzTFF0Q0dRMkF0SVlMVWNPVlUwd3FQbDhZdDRTeURNazgiLCJhdXRoX3RpbWUiOjE1NzU1Mjk4OTUsImlzcyI6Imh0dHBzOi8vamVua2lucy1jYi5nbHV1Lm9yZyIsImV4cCI6MTU3NTUzMzQ5OCwiaWF0IjoxNTc1NTI5ODk4LCJub25jZSI6ImQ5OThhMzc3LWIxYmEtNDY0OC05MjhhLWJiYmU4YzQ3MzVhOSIsIm94T3BlbklEQ29ubmVjdFZlcnNpb24iOiJvcGVuaWRjb25uZWN0LTEuMCJ9.PBnFNrYKwZ_jo1JlMdlFbh_TudZR0fAxdA1h33905m-SJz6jRE6iIrskrO-zJiAh9tP_QQQyQ3RXWf-EIxvS9qP-YhiwICMz0JANVMOocVxx9JQxbmUn8WGmoI19Y-DJdroksEKiJGdZzL_YQlDOupxbgtiCFgGe7-MOlO3smfyqKL3Ysb0QM_eM8kG7nhWRV5IFNDyIwXfUjEoL-0DHjUqttPQG60p7vRH1B9iSPynSa-_uPevsZyzV2Oe_cnc4TknsVPMrNNb1Qlrjy8pvvk4Jf9dhLbN_km8jI8SD0pOXZ2PbJG_9mvTcEisQfmG3dbKhDrdOQgoBQnKq2WoN8A","token_type":"bearer","expires_in":299}

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/token HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Host: jenkins-cb.gluu.org
Authorization: Basic ZDZmOGMxZGMtYzRmOC00YWUxLWEzZTItMGYwNDlkNmJlYjc3OjdlY2IzODZjLTI4N2QtNDhkOC1hODJhLWQ5NTQ0OWNhOTQyZg==

grant_type=refresh_token&scope=address+openid+user_name+profile+email&refresh_token=17a6b73b-5730-4fdc-b098-001a3f8b9f79

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 198
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:11:38 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{"access_token":"0461d5cb-b2d0-4f15-a68e-a760830b12ea","refresh_token":"0194d414-c012-46f1-9ee0-587c26b6262b","scope":"address openid user_name profile email","token_type":"bearer","expires_in":299}

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
GET /oxauth/restv1/userinfo HTTP/1.1
Host: jenkins-cb.gluu.org
Authorization: Bearer 0461d5cb-b2d0-4f15-a68e-a760830b12ea

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store, private
Connection: Keep-Alive
Content-Length: 638
Content-Type: application/json;charset=utf-8
Date: Thu, 05 Dec 2019 07:11:38 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{"sub":"aHHqIHpRS8sLQtCGQ2AtIYLUcOVU0wqPl8Yt4SyDMk8","website":"http://www.gluu.org","zoneinfo":"America/Chicago","address":{"street_address":"621 East 6th Street","country":"US","locality":"Austin","region":"Texas"},"birthdate":"1983-01-06T01:05:14.000","email_verified":true,"gender":"Male","user_name":"test_user","profile":"http://www.mywebsite.com/profile","preferred_username":"user","given_name":"Test","middle_name":"User","locale":"en-US","picture":"http://www.gluu.org/wp-content/uploads/2012/04/mike3.png","updated_at":1486994332000,"name":"oxAuth Test User","nickname":"user","family_name":"User","email":"test_user@test.org"}

#######################################################
TEST: applicationTypeNativeSubjectTypePublic
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "subject_type" : "public",
  "application_type" : "native",
  "scope" : "openid profile address email user_name",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "client_name" : "oxAuth test app",
  "response_types" : [ "code", "id_token" ]
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1505
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:11:38 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "native",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=bb69fd4f-34f9-440a-b22f-c9b4cb0c39f7",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "06cc2ac5-fe37-4432-9211-788d0dd39651",
    "client_id": "bb69fd4f-34f9-440a-b22f-c9b4cb0c39f7",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "address profile email user_name openid",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "91f95ace-48e5-421a-8793-6fdfe9053b2d",
    "client_id_issued_at": 1575529898,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": [
        "refresh_token",
        "authorization_code",
        "implicit"
    ],
    "subject_type": "public",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616298,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": [
        "code",
        "token",
        "id_token"
    ]
}

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
GET /oxauth/restv1/register?{ } HTTP/1.1
Host: jenkins-cb.gluu.org
Authorization: Bearer 06cc2ac5-fe37-4432-9211-788d0dd39651

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1505
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:11:38 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "native",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=bb69fd4f-34f9-440a-b22f-c9b4cb0c39f7",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "06cc2ac5-fe37-4432-9211-788d0dd39651",
    "client_id": "bb69fd4f-34f9-440a-b22f-c9b4cb0c39f7",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "address profile email user_name openid",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "91f95ace-48e5-421a-8793-6fdfe9053b2d",
    "client_id_issued_at": 1575529898,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": [
        "refresh_token",
        "authorization_code",
        "implicit"
    ],
    "subject_type": "public",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616298,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": [
        "code",
        "token",
        "id_token"
    ]
}

authenticateResourceOwnerAndGrantAccess: Cleaning cookies
authenticateResourceOwnerAndGrantAccess: authorizationRequestUrl:https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=code+id_token&client_id=bb69fd4f-34f9-440a-b22f-c9b4cb0c39f7&scope=openid+profile+address+email+user_name&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=89ce3c03-953d-450c-a084-c9189eb62000&nonce=f1d0c33e-1e77-423d-b5d4-66b290e190f4
authenticateResourceOwnerAndGrantAccess: sessionState:6ddc5a7e079828060478f76dcccd9cd0e548095dc75f21bda2e5afbf41214d24.6b4c78a1-0384-47b8-b74e-ba66ac6cff1b
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=code+id_token&client_id=bb69fd4f-34f9-440a-b22f-c9b4cb0c39f7&scope=openid+profile+address+email+user_name&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=89ce3c03-953d-450c-a084-c9189eb62000&nonce=f1d0c33e-1e77-423d-b5d4-66b290e190f4

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm#code=6648046c-109f-4ad6-a2e8-51eafd37e8c1&scope=address+openid+user_name+profile+email&id_token=eyJraWQiOiI5MjA3MzdmZC1mYWQ3LTQxNzAtOWU0OS00Y2Q2Yjc1N2EyNTRfc2lnX3JzMjU2IiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJhdWQiOiJiYjY5ZmQ0Zi0zNGY5LTQ0MGEtYjIyZi1jOWI0Y2IwYzM5ZjciLCJjX2hhc2giOiIyajVLcGhpT2l1MUVXa19HSUxnRmR3Iiwic3ViIjoiQjFGMy1BRUFFLUI3OTgiLCJzX2hhc2giOiJRd0hzQm1nZUFaeWpBeGFhdEVtaWxRIiwiYXV0aF90aW1lIjoxNTc1NTI5ODk5LCJpc3MiOiJodHRwczovL2plbmtpbnMtY2IuZ2x1dS5vcmciLCJleHAiOjE1NzU1MzM1MDIsImlhdCI6MTU3NTUyOTkwMiwibm9uY2UiOiJmMWQwYzMzZS0xZTc3LTQyM2QtYjVkNC02NmIyOTBlMTkwZjQiLCJveE9wZW5JRENvbm5lY3RWZXJzaW9uIjoib3BlbmlkY29ubmVjdC0xLjAifQ.DXOfqrOv1BjEEU-PNgMfdOO8x1LE9JE6C2evQOHsiFfPmlAzb0i3YeErw23Rl1DdODuxAVCj7cRqrMFEpRqj4zhpwIHuh1ZO5pJBJU7rFfel9ZB3ubi7BmuTeVzE3-CbGQTulmb0Rg8c3fErhIfssDgUQwkvR23xJi2Os5-vi9PYDEnWg1xjl7_lWeEHlRpG4tIr8riRjmphriy1BULV4oyGW13_5DWiFo7e6XEHEAbksXgtOjDnk0mz6OX6gz9o5VZ7uhDAxm9keGuAokmFP47YOzo-LICv_BX5UarHKWv92QnZeMGmUA6chvnnkCQmaJvMgq75bWuMYXTtGK3r5g&session_id=822ddbe0-1cf1-4776-9c60-24852ed40a5a&state=89ce3c03-953d-450c-a084-c9189eb62000&session_state=6ddc5a7e079828060478f76dcccd9cd0e548095dc75f21bda2e5afbf41214d24.6b4c78a1-0384-47b8-b74e-ba66ac6cff1b

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/token HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Host: jenkins-cb.gluu.org
Authorization: Basic YmI2OWZkNGYtMzRmOS00NDBhLWIyMmYtYzliNGNiMGMzOWY3OjkxZjk1YWNlLTQ4ZTUtNDIxYS04NzkzLTZmZGZlOTA1M2IyZA==

grant_type=authorization_code&code=6648046c-109f-4ad6-a2e8-51eafd37e8c1&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1003
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:11:42 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{"access_token":"6fcab7bd-2c5f-472c-bd7f-e7d5e6ee5df8","refresh_token":"f76fd719-59d4-451e-9f01-fce8b2a64824","id_token":"eyJraWQiOiI5MjA3MzdmZC1mYWQ3LTQxNzAtOWU0OS00Y2Q2Yjc1N2EyNTRfc2lnX3JzMjU2IiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJhdF9oYXNoIjoicjg3cmlqUUl6TVctS0tSNDN5QjR6QSIsImF1ZCI6ImJiNjlmZDRmLTM0ZjktNDQwYS1iMjJmLWM5YjRjYjBjMzlmNyIsInN1YiI6IkIxRjMtQUVBRS1CNzk4IiwiYXV0aF90aW1lIjoxNTc1NTI5ODk5LCJpc3MiOiJodHRwczovL2plbmtpbnMtY2IuZ2x1dS5vcmciLCJleHAiOjE1NzU1MzM1MDIsImlhdCI6MTU3NTUyOTkwMiwibm9uY2UiOiJmMWQwYzMzZS0xZTc3LTQyM2QtYjVkNC02NmIyOTBlMTkwZjQiLCJveE9wZW5JRENvbm5lY3RWZXJzaW9uIjoib3BlbmlkY29ubmVjdC0xLjAifQ.VriDG4qJ3AhRAYs0Cj4k5SsT3_XDAGDFoCsIEPwPQoTNimTK4cFQ7rHzEwFSqEJEVGcqMFonr1ZzC4lJly3HmnZnq5BAACMFIzrHH_2Iaxx49m5_uSC4t5qsn-ftdggzEp157Xu89e0s7Z0bALqdF0XCyxAJxiNH5VEvls5e9T1ei8hbEuh-dDVx4Ry_063LwuMcINtIIUzIB890QZIXMYnFfDyp1mPUTKq28V0Z9rbYJXSSqdIZpvW_N4ZUAv-hOjDX2_aGXPQl3Mt23CpeUQkqOPcZZD_iLvUpN6wv3LenVs0LZGJfp0E3stL5POW48xNa3P7jnzYO_qrn2W4EHA","token_type":"bearer","expires_in":299}

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/token HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Host: jenkins-cb.gluu.org
Authorization: Basic YmI2OWZkNGYtMzRmOS00NDBhLWIyMmYtYzliNGNiMGMzOWY3OjkxZjk1YWNlLTQ4ZTUtNDIxYS04NzkzLTZmZGZlOTA1M2IyZA==

grant_type=refresh_token&scope=address+openid+user_name+profile+email&refresh_token=f76fd719-59d4-451e-9f01-fce8b2a64824

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 198
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:11:42 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{"access_token":"b570dd5d-515a-40e2-bae8-b0ce089c1e06","refresh_token":"e9a63e0b-4957-4086-b62b-e0cea3186c1e","scope":"address openid user_name profile email","token_type":"bearer","expires_in":300}

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
GET /oxauth/restv1/userinfo HTTP/1.1
Host: jenkins-cb.gluu.org
Authorization: Bearer b570dd5d-515a-40e2-bae8-b0ce089c1e06

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store, private
Connection: Keep-Alive
Content-Length: 609
Content-Type: application/json;charset=utf-8
Date: Thu, 05 Dec 2019 07:11:42 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{"sub":"B1F3-AEAE-B798","website":"http://www.gluu.org","zoneinfo":"America/Chicago","address":{"street_address":"621 East 6th Street","country":"US","locality":"Austin","region":"Texas"},"birthdate":"1983-01-06T01:05:14.000","email_verified":true,"gender":"Male","user_name":"test_user","profile":"http://www.mywebsite.com/profile","preferred_username":"user","given_name":"Test","middle_name":"User","locale":"en-US","picture":"http://www.gluu.org/wp-content/uploads/2012/04/mike3.png","updated_at":1486994332000,"name":"oxAuth Test User","nickname":"user","family_name":"User","email":"test_user@test.org"}

#######################################################
TEST: applicationTypeWeb
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "application_type" : "web",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "sector_identifier_uri" : "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "client_name" : "oxAuth test app"
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1648
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:11:42 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=a7ab399e-1522-4e59-9694-124627d11024",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "a114d905-3efd-40ab-91ae-88f2f4386932",
    "client_id": "a7ab399e-1522-4e59-9694-124627d11024",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "address phone org_name profile clientinfo uma_protection user_name openid permission oxd work_phone email super_gluu_ro_session test",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "2b678c6d-757c-4292-8971-4e98441de508",
    "client_id_issued_at": 1575529902,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": [
        "refresh_token",
        "authorization_code"
    ],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616302,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": ["code"]
}

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
GET /oxauth/restv1/register?{ } HTTP/1.1
Host: jenkins-cb.gluu.org
Authorization: Bearer a114d905-3efd-40ab-91ae-88f2f4386932

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1648
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:11:42 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=a7ab399e-1522-4e59-9694-124627d11024",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "a114d905-3efd-40ab-91ae-88f2f4386932",
    "client_id": "a7ab399e-1522-4e59-9694-124627d11024",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "address phone org_name profile clientinfo uma_protection user_name openid permission oxd work_phone email super_gluu_ro_session test",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "2b678c6d-757c-4292-8971-4e98441de508",
    "client_id_issued_at": 1575529902,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": [
        "refresh_token",
        "authorization_code"
    ],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616302,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": ["code"]
}

#######################################################
TEST: applicationTypeWebFail1
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "application_type" : "web",
  "redirect_uris" : [ "http://client.example.com/cb" ],
  "client_name" : "oxAuth test app"
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 400
Connection: close
Content-Length: 146
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:11:42 GMT
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{"reason":"Failed to validate redirect uris.","error_description":"Value of one or more redirect_uris is invalid.","error":"invalid_redirect_uri"}

#######################################################
TEST: omittedApplicationType
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "sector_identifier_uri" : "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "client_name" : "oxAuth test app"
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1648
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:11:42 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=babdc9e1-8479-4ca4-8639-01ce42b6fa53",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "5f1e99ee-e5e0-405a-9a7e-4135f0a2013a",
    "client_id": "babdc9e1-8479-4ca4-8639-01ce42b6fa53",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "profile super_gluu_ro_session openid phone address oxd email org_name user_name clientinfo test uma_protection work_phone permission",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "31d06cf1-e319-4004-a5cd-5e965da3d9bd",
    "client_id_issued_at": 1575529902,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": [
        "refresh_token",
        "authorization_code"
    ],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616302,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": ["code"]
}

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
GET /oxauth/restv1/register?{ } HTTP/1.1
Host: jenkins-cb.gluu.org
Authorization: Bearer 5f1e99ee-e5e0-405a-9a7e-4135f0a2013a

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1648
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:11:42 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=babdc9e1-8479-4ca4-8639-01ce42b6fa53",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "5f1e99ee-e5e0-405a-9a7e-4135f0a2013a",
    "client_id": "babdc9e1-8479-4ca4-8639-01ce42b6fa53",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "profile super_gluu_ro_session openid phone address oxd email org_name user_name clientinfo test uma_protection work_phone permission",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "31d06cf1-e319-4004-a5cd-5e965da3d9bd",
    "client_id_issued_at": 1575529902,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": [
        "refresh_token",
        "authorization_code"
    ],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616302,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": ["code"]
}

#######################################################
TEST: OpenID Connect Discovery
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
GET /.well-known/webfinger?resource=acct%3Atest_user%40jenkins-cb.gluu.org&rel=http%3A%2F%2Fopenid.net%2Fspecs%2Fconnect%2F1.0%2Fissuer HTTP/1.1
Host: jenkins-cb.gluu.org

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Connection: Keep-Alive
Content-Length: 187
Content-Type: application/jrd+json;charset=iso-8859-1
Date: Thu, 05 Dec 2019 07:11:42 GMT
Keep-Alive: timeout=5, max=100
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "subject": "acct:test_user@jenkins-cb.gluu.org",
    "links": [{
        "rel": "http://openid.net/specs/connect/1.0/issuer",
        "href": "https://jenkins-cb.gluu.org"
    }]
}


OpenID Connect Configuration
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
GET /.well-known/openid-configuration HTTP/1.1
Host: jenkins-cb.gluu.org

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Connection: Keep-Alive
Content-Length: 5934
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:11:42 GMT
Keep-Alive: timeout=5, max=100
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
  "request_parameter_supported" : true,
  "token_revocation_endpoint" : "https://jenkins-cb.gluu.org/oxauth/restv1/revoke",
  "introspection_endpoint" : "https://jenkins-cb.gluu.org/oxauth/restv1/introspection",
  "claims_parameter_supported" : true,
  "check_session_iframe" : "https://jenkins-cb.gluu.org/oxauth/opiframe.htm",
  "scopes_supported" : [ "https://jenkins-cb.gluu.org/oxauth/restv1/uma/scopes/scim_access", "address", "test", "clientinfo", "openid", "user_name", "uma_protection", "profile", "http://photoz.example.com/dev/scopes/view", "https://jenkins-cb.gluu.org/oxauth/restv1/uma/scopes/passport_access", "work_phone", "permission", "http://photoz.example.com/dev/scopes/all", "modify", "oxtrust-api-read", "oxtrust-api-write", "phone", "mobile_phone", "oxd", "super_gluu_ro_session", "org_name", "email" ],
  "issuer" : "https://jenkins-cb.gluu.org",
  "acr_values_supported" : [ "simple_password_auth", "basic_lock", "basic" ],
  "userinfo_encryption_enc_values_supported" : [ "RSA1_5", "RSA-OAEP", "A128KW", "A256KW" ],
  "id_token_encryption_enc_values_supported" : [ "A128CBC+HS256", "A256CBC+HS512", "A128GCM", "A256GCM" ],
  "authorization_endpoint" : "https://jenkins-cb.gluu.org/oxauth/restv1/authorize",
  "service_documentation" : "http://gluu.org/docs",
  "request_object_encryption_enc_values_supported" : [ "A128CBC+HS256", "A256CBC+HS512", "A128GCM", "A256GCM" ],
  "display_values_supported" : [ "page", "popup" ],
  "id_generation_endpoint" : "https://jenkins-cb.gluu.org/oxauth/restv1/id",
  "userinfo_signing_alg_values_supported" : [ "HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "ES256", "ES384", "ES512" ],
  "claims_supported" : [ "oxAuthRedirectURI", "street_address", "country", "zoneinfo", "birthdate", "gender", "user_name", "formatted", "oxAuthIdTokenSignedResponseAlg", "oxAuthScope", "work_phone", "phone_mobile_number", "preferred_username", "inum", "locale", "oxAuthAppType", "updated_at", "nickname", "member_of", "org_name", "email", "website", "email_verified", "profile", "locality", "phone_number_verified", "given_name", "middle_name", "picture", "name", "phone_number", "postal_code", "region", "family_name" ],
  "scope_to_claims_mapping" : [ {
    "oxd" : [ ]
  }, {
    "https://jenkins-cb.gluu.org/oxauth/restv1/uma/scopes/scim_access" : [ ]
  }, {
    "clientinfo" : [ "name", "inum", "oxAuthAppType", "oxAuthIdTokenSignedResponseAlg", "oxAuthRedirectURI", "oxAuthScope" ]
  }, {
    "openid" : [ ]
  }, {
    "user_name" : [ "user_name" ]
  }, {
    "oxtrust-api-read" : [ ]
  }, {
    "http://photoz.example.com/dev/scopes/view" : [ ]
  }, {
    "test" : [ "member_of" ]
  }, {
    "uma_protection" : [ ]
  }, {
    "email" : [ "email_verified", "email" ]
  }, {
    "oxtrust-api-write" : [ ]
  }, {
    "super_gluu_ro_session" : [ ]
  }, {
    "https://jenkins-cb.gluu.org/oxauth/restv1/uma/scopes/passport_access" : [ ]
  }, {
    "org_name" : [ "org_name" ]
  }, {
    "profile" : [ "name", "family_name", "given_name", "middle_name", "nickname", "preferred_username", "profile", "picture", "website", "gender", "birthdate", "zoneinfo", "locale", "updated_at" ]
  }, {
    "work_phone" : [ "work_phone" ]
  }, {
    "http://photoz.example.com/dev/scopes/all" : [ ]
  }, {
    "permission" : [ ]
  }, {
    "address" : [ "formatted", "postal_code", "street_address", "locality", "country", "region" ]
  }, {
    "phone" : [ "phone_number_verified", "phone_number" ]
  }, {
    "mobile_phone" : [ "phone_mobile_number" ]
  }, {
    "modify" : [ ]
  } ],
  "claim_types_supported" : [ "normal" ],
  "op_policy_uri" : "http://ox.gluu.org/doku.php?id=oxauth:policy",
  "token_endpoint_auth_methods_supported" : [ "client_secret_basic", "client_secret_post", "client_secret_jwt", "private_key_jwt" ],
  "tls_client_certificate_bound_access_tokens" : true,
  "response_modes_supported" : [ "fragment", "query", "form_post" ],
  "token_endpoint" : "https://jenkins-cb.gluu.org/oxauth/restv1/token",
  "response_types_supported" : [ "code", "code token id_token", "token", "code token", "id_token", "code id_token", "token id_token" ],
  "request_uri_parameter_supported" : true,
  "userinfo_encryption_alg_values_supported" : [ "RSA1_5", "RSA-OAEP", "A128KW", "A256KW" ],
  "grant_types_supported" : [ "client_credentials", "refresh_token", "authorization_code", "password", "urn:ietf:params:oauth:grant-type:uma-ticket", "implicit" ],
  "end_session_endpoint" : "https://jenkins-cb.gluu.org/oxauth/restv1/end_session",
  "ui_locales_supported" : [ "en", "es" ],
  "userinfo_endpoint" : "https://jenkins-cb.gluu.org/oxauth/restv1/userinfo",
  "token_endpoint_auth_signing_alg_values_supported" : [ "HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "ES256", "ES384", "ES512" ],
  "op_tos_uri" : "http://ox.gluu.org/doku.php?id=oxauth:tos",
  "frontchannel_logout_supported" : true,
  "auth_level_mapping" : {
    "-1" : [ "simple_password_auth" ],
    "20" : [ "basic_lock" ],
    "10" : [ "basic" ]
  },
  "require_request_uri_registration" : false,
  "id_token_encryption_alg_values_supported" : [ "RSA1_5", "RSA-OAEP", "A128KW", "A256KW" ],
  "jwks_uri" : "https://jenkins-cb.gluu.org/oxauth/restv1/jwks",
  "frontchannel_logout_session_supported" : true,
  "subject_types_supported" : [ "public", "pairwise" ],
  "id_token_signing_alg_values_supported" : [ "none", "HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "ES256", "ES384", "ES512" ],
  "registration_endpoint" : "https://jenkins-cb.gluu.org/oxauth/restv1/register",
  "claims_locales_supported" : [ "en" ],
  "clientinfo_endpoint" : "https://jenkins-cb.gluu.org/oxauth/restv1/clientinfo",
  "request_object_signing_alg_values_supported" : [ "none", "HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "ES256", "ES384", "ES512" ],
  "request_object_encryption_alg_values_supported" : [ "RSA1_5", "RSA-OAEP", "A128KW", "A256KW" ],
  "id_token_token_binding_cnf_values_supported" : [ "tbh" ]
}


#######################################################
TEST: tokenBindingWithImplicitFlow
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "oxAuthTrustedClient" : "true",
  "grant_types" : [ "password" ],
  "application_type" : "web",
  "id_token_token_binding_cnf" : "tbh",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm" ],
  "client_name" : "oxAuth test app",
  "response_types" : [ "token", "id_token" ]
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1408
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:11:42 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=c09aaa33-e4d4-4daa-888a-2a95cdfa2f34",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "c74dc627-f180-4452-afb4-4baa759695bb",
    "client_id": "c09aaa33-e4d4-4daa-888a-2a95cdfa2f34",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "permission oxd work_phone email super_gluu_ro_session test address phone org_name profile clientinfo uma_protection user_name openid",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "51164b23-df08-40d4-8259-3d449f06b548",
    "client_id_issued_at": 1575529902,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": [
        "password",
        "implicit"
    ],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": ["https://jenkins-cb.gluu.org/oxauth-rp/home.htm"],
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616302,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": [
        "token",
        "id_token"
    ]
}

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/authorize HTTP/1.1
Host: jenkins-cb.gluu.org
Authorization: Basic dGVzdF91c2VyOnRlc3RfdXNlcl9wYXNzd29yZA==

response_type=token+id_token&client_id=c09aaa33-e4d4-4daa-888a-2a95cdfa2f34&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=7d4a560a-ad46-4baf-8f36-bb46b9ff62dd&nonce=55228040-b833-415f-a370-f8aa03124b0d&prompt=none

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302
Connection: Keep-Alive
Content-Length: 0
Date: Thu, 05 Dec 2019 07:11:42 GMT
Keep-Alive: timeout=5, max=100
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm#access_token=05c24e32-c13f-45a1-a94e-c92d8d962bab&scope=address+openid+profile+email&id_token=eyJraWQiOiI5MjA3MzdmZC1mYWQ3LTQxNzAtOWU0OS00Y2Q2Yjc1N2EyNTRfc2lnX3JzMjU2IiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJhdF9oYXNoIjoia1l2T1lxLTVISDk3UnN3X2oxNTF4ZyIsImF1ZCI6ImMwOWFhYTMzLWU0ZDQtNGRhYS04ODhhLTJhOTVjZGZhMmYzNCIsInN1YiI6IjNfemRBZHFLbGUwd28xclZYYmc3cG1iVmFpdlFycHBVRmpQNlVxZ3QtdVEiLCJzX2hhc2giOiJtV2E0M1VqQ3ZpRGdTTUMyelFFWk9BIiwiYXV0aF90aW1lIjoxNTc1NTI5OTAyLCJpc3MiOiJodHRwczovL2plbmtpbnMtY2IuZ2x1dS5vcmciLCJjbmYiOnsidGJoIjoic3VNdXhoX0lsclAtWnJqMzNMdVFPUTVyWDAzOWNtQmUtd3QyZGYzQnJVUSJ9LCJleHAiOjE1NzU1MzM1MDMsImlhdCI6MTU3NTUyOTkwMywibm9uY2UiOiI1NTIyODA0MC1iODMzLTQxNWYtYTM3MC1mOGFhMDMxMjRiMGQiLCJveE9wZW5JRENvbm5lY3RWZXJzaW9uIjoib3BlbmlkY29ubmVjdC0xLjAifQ.mCcqcQr49v_rxQB0r2ZNSqauS1sp28P-MNBQqGLKo2Tqz3YCF3gKlXrRrsjwcXdZtdMrDgVpCXtr8nt-lnJvHblxJ9ZMssjtmWOCEvjLenEIJ5VWeF9NkIJDzqMgpJ4EGWaqsynk6ONfScioJqrInL_nTg2zXIu6p58LrutFs15RVqMNnyxKELkeGAZdzQPnqGlduE1Pl0m0Aa7vlw7vrGmAaguhc3PXP75i15c-na6U9fPj6xqLLu83OYXbCt-a1cDTSaVLq00OztVZdMCB9EKf2p0XXZmLp4PD0E-RSAPmHFOinAf3qOjjP0vnmJVrceM8BRNNnpugXAdfupdeog&session_id=431e7b7b-47a0-4be0-adca-da9a75c02745&state=7d4a560a-ad46-4baf-8f36-bb46b9ff62dd&token_type=bearer&session_state=e7b0936a956c433e0fdf1ef201f7b125f59969099247e22f4ab5d8c3b4dbf4c9.7bfa28db-a637-4b08-a3a0-bba9cc57c2ba&expires_in=299
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block



#######################################################
TEST: OpenID Connect Discovery
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
GET /.well-known/webfinger?resource=acct%3Atest_user%40jenkins-cb.gluu.org&rel=http%3A%2F%2Fopenid.net%2Fspecs%2Fconnect%2F1.0%2Fissuer HTTP/1.1
Host: jenkins-cb.gluu.org

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Connection: Keep-Alive
Content-Length: 187
Content-Type: application/jrd+json;charset=iso-8859-1
Date: Thu, 05 Dec 2019 07:11:43 GMT
Keep-Alive: timeout=5, max=100
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "subject": "acct:test_user@jenkins-cb.gluu.org",
    "links": [{
        "rel": "http://openid.net/specs/connect/1.0/issuer",
        "href": "https://jenkins-cb.gluu.org"
    }]
}


OpenID Connect Configuration
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
GET /.well-known/openid-configuration HTTP/1.1
Host: jenkins-cb.gluu.org

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Connection: Keep-Alive
Content-Length: 5934
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:11:43 GMT
Keep-Alive: timeout=5, max=100
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
  "request_parameter_supported" : true,
  "token_revocation_endpoint" : "https://jenkins-cb.gluu.org/oxauth/restv1/revoke",
  "introspection_endpoint" : "https://jenkins-cb.gluu.org/oxauth/restv1/introspection",
  "claims_parameter_supported" : true,
  "check_session_iframe" : "https://jenkins-cb.gluu.org/oxauth/opiframe.htm",
  "scopes_supported" : [ "https://jenkins-cb.gluu.org/oxauth/restv1/uma/scopes/scim_access", "address", "test", "clientinfo", "openid", "user_name", "uma_protection", "profile", "https://jenkins-cb.gluu.org/oxauth/restv1/uma/scopes/passport_access", "work_phone", "http://photoz.example.com/dev/scopes/view", "permission", "http://photoz.example.com/dev/scopes/all", "modify", "oxtrust-api-write", "oxtrust-api-read", "phone", "mobile_phone", "oxd", "super_gluu_ro_session", "org_name", "email" ],
  "issuer" : "https://jenkins-cb.gluu.org",
  "acr_values_supported" : [ "simple_password_auth", "basic_lock", "basic" ],
  "userinfo_encryption_enc_values_supported" : [ "RSA1_5", "RSA-OAEP", "A128KW", "A256KW" ],
  "id_token_encryption_enc_values_supported" : [ "A128CBC+HS256", "A256CBC+HS512", "A128GCM", "A256GCM" ],
  "authorization_endpoint" : "https://jenkins-cb.gluu.org/oxauth/restv1/authorize",
  "service_documentation" : "http://gluu.org/docs",
  "request_object_encryption_enc_values_supported" : [ "A128CBC+HS256", "A256CBC+HS512", "A128GCM", "A256GCM" ],
  "display_values_supported" : [ "page", "popup" ],
  "id_generation_endpoint" : "https://jenkins-cb.gluu.org/oxauth/restv1/id",
  "userinfo_signing_alg_values_supported" : [ "HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "ES256", "ES384", "ES512" ],
  "claims_supported" : [ "oxAuthRedirectURI", "street_address", "country", "zoneinfo", "birthdate", "gender", "formatted", "user_name", "oxAuthIdTokenSignedResponseAlg", "oxAuthScope", "work_phone", "phone_mobile_number", "preferred_username", "inum", "locale", "oxAuthAppType", "updated_at", "nickname", "member_of", "org_name", "email", "website", "email_verified", "profile", "locality", "phone_number_verified", "given_name", "middle_name", "picture", "name", "phone_number", "postal_code", "region", "family_name" ],
  "scope_to_claims_mapping" : [ {
    "modify" : [ ]
  }, {
    "https://jenkins-cb.gluu.org/oxauth/restv1/uma/scopes/scim_access" : [ ]
  }, {
    "clientinfo" : [ "name", "inum", "oxAuthAppType", "oxAuthIdTokenSignedResponseAlg", "oxAuthRedirectURI", "oxAuthScope" ]
  }, {
    "mobile_phone" : [ "phone_mobile_number" ]
  }, {
    "test" : [ "member_of" ]
  }, {
    "https://jenkins-cb.gluu.org/oxauth/restv1/uma/scopes/passport_access" : [ ]
  }, {
    "uma_protection" : [ ]
  }, {
    "work_phone" : [ "work_phone" ]
  }, {
    "http://photoz.example.com/dev/scopes/all" : [ ]
  }, {
    "permission" : [ ]
  }, {
    "profile" : [ "name", "family_name", "given_name", "middle_name", "nickname", "preferred_username", "profile", "picture", "website", "gender", "birthdate", "zoneinfo", "locale", "updated_at" ]
  }, {
    "super_gluu_ro_session" : [ ]
  }, {
    "openid" : [ ]
  }, {
    "phone" : [ "phone_number_verified", "phone_number" ]
  }, {
    "oxtrust-api-write" : [ ]
  }, {
    "address" : [ "formatted", "postal_code", "street_address", "locality", "country", "region" ]
  }, {
    "oxd" : [ ]
  }, {
    "email" : [ "email_verified", "email" ]
  }, {
    "org_name" : [ "org_name" ]
  }, {
    "oxtrust-api-read" : [ ]
  }, {
    "user_name" : [ "user_name" ]
  }, {
    "http://photoz.example.com/dev/scopes/view" : [ ]
  } ],
  "claim_types_supported" : [ "normal" ],
  "op_policy_uri" : "http://ox.gluu.org/doku.php?id=oxauth:policy",
  "token_endpoint_auth_methods_supported" : [ "client_secret_basic", "client_secret_post", "client_secret_jwt", "private_key_jwt" ],
  "tls_client_certificate_bound_access_tokens" : true,
  "response_modes_supported" : [ "fragment", "query", "form_post" ],
  "token_endpoint" : "https://jenkins-cb.gluu.org/oxauth/restv1/token",
  "response_types_supported" : [ "code", "code token id_token", "token", "code token", "id_token", "code id_token", "token id_token" ],
  "request_uri_parameter_supported" : true,
  "userinfo_encryption_alg_values_supported" : [ "RSA1_5", "RSA-OAEP", "A128KW", "A256KW" ],
  "grant_types_supported" : [ "client_credentials", "refresh_token", "authorization_code", "password", "urn:ietf:params:oauth:grant-type:uma-ticket", "implicit" ],
  "end_session_endpoint" : "https://jenkins-cb.gluu.org/oxauth/restv1/end_session",
  "ui_locales_supported" : [ "en", "es" ],
  "userinfo_endpoint" : "https://jenkins-cb.gluu.org/oxauth/restv1/userinfo",
  "token_endpoint_auth_signing_alg_values_supported" : [ "HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "ES256", "ES384", "ES512" ],
  "op_tos_uri" : "http://ox.gluu.org/doku.php?id=oxauth:tos",
  "frontchannel_logout_supported" : true,
  "auth_level_mapping" : {
    "-1" : [ "simple_password_auth" ],
    "20" : [ "basic_lock" ],
    "10" : [ "basic" ]
  },
  "require_request_uri_registration" : false,
  "id_token_encryption_alg_values_supported" : [ "RSA1_5", "RSA-OAEP", "A128KW", "A256KW" ],
  "jwks_uri" : "https://jenkins-cb.gluu.org/oxauth/restv1/jwks",
  "frontchannel_logout_session_supported" : true,
  "subject_types_supported" : [ "public", "pairwise" ],
  "id_token_signing_alg_values_supported" : [ "none", "HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "ES256", "ES384", "ES512" ],
  "registration_endpoint" : "https://jenkins-cb.gluu.org/oxauth/restv1/register",
  "claims_locales_supported" : [ "en" ],
  "clientinfo_endpoint" : "https://jenkins-cb.gluu.org/oxauth/restv1/clientinfo",
  "request_object_signing_alg_values_supported" : [ "none", "HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "ES256", "ES384", "ES512" ],
  "request_object_encryption_alg_values_supported" : [ "RSA1_5", "RSA-OAEP", "A128KW", "A256KW" ],
  "id_token_token_binding_cnf_values_supported" : [ "tbh" ]
}


#######################################################
TEST: accessTokenAsJwt
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "access_token_as_jwt" : "true",
  "application_type" : "web",
  "scope" : "openid profile address email phone user_name",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm" ],
  "access_token_signing_alg" : "RS512",
  "client_name" : "access token as JWT test",
  "response_types" : [ "code", "id_token", "token" ]
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1379
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:11:43 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=10b7bca3-280d-41fe-a280-aca6407b37fa",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "def471fd-da9f-4836-b217-bcaf38fcb544",
    "client_id": "10b7bca3-280d-41fe-a280-aca6407b37fa",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "phone address profile email user_name openid",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "465e3559-b84d-4887-acf0-9e0b89061595",
    "client_id_issued_at": 1575529903,
    "client_name": "access token as JWT test",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": true,
    "grant_types": [
        "refresh_token",
        "authorization_code",
        "implicit"
    ],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": ["https://jenkins-cb.gluu.org/oxauth-rp/home.htm"],
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616303,
    "require_auth_time": false,
    "access_token_signing_alg": "RS512",
    "response_types": [
        "code",
        "token",
        "id_token"
    ]
}

authenticateResourceOwnerAndGrantAccess: Cleaning cookies
authenticateResourceOwnerAndGrantAccess: authorizationRequestUrl:https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=code+id_token+token&client_id=10b7bca3-280d-41fe-a280-aca6407b37fa&scope=openid+profile+address+email+phone+user_name&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=41119e5d-b1b1-41b4-91a6-96befdc53d6e&nonce=931f112e-a54f-4725-8e46-fceb9f59fb0e
authenticateResourceOwnerAndGrantAccess: sessionState:5ac29a37160a2bfb2b860ecbdea10908525790c10d3d825e854d83023f99700f.124268a0-975c-4ce9-ad56-7147c9065e7a
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=code+id_token+token&client_id=10b7bca3-280d-41fe-a280-aca6407b37fa&scope=openid+profile+address+email+phone+user_name&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=41119e5d-b1b1-41b4-91a6-96befdc53d6e&nonce=931f112e-a54f-4725-8e46-fceb9f59fb0e

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm#access_token=eyJraWQiOiI1YWFmMzBlYy05MTg4LTQwNWMtOTU5NC1mN2Q5NzcyZTQwMmNfc2lnX3JzNTEyIiwidHlwIjoiSldUIiwiYWxnIjoiUlM1MTIifQ.eyJhdWQiOiIxMGI3YmNhMy0yODBkLTQxZmUtYTI4MC1hY2E2NDA3YjM3ZmEiLCJzdWIiOiIzX3pkQWRxS2xlMHdvMXJWWGJnN3BtYlZhaXZRcnBwVUZqUDZVcWd0LXVRIiwieDV0I1MyNTYiOiIiLCJzY29wZSI6WyJhZGRyZXNzIiwicGhvbmUiLCJvcGVuaWQiLCJ1c2VyX25hbWUiLCJwcm9maWxlIiwiZW1haWwiXSwiaXNzIjoiaHR0cHM6Ly9qZW5raW5zLWNiLmdsdXUub3JnIiwidG9rZW5fdHlwZSI6ImJlYXJlciIsImV4cCI6MTU3NTUzMDIwNywiaWF0IjoxNTc1NTI5OTA3LCJjbGllbnRfaWQiOiIxMGI3YmNhMy0yODBkLTQxZmUtYTI4MC1hY2E2NDA3YjM3ZmEiLCJ1c2VybmFtZSI6Im94QXV0aCBUZXN0IFVzZXIifQ.f_UONlpIDxSVIYNVZpEEs2tIyTl_wudE36JhW7Q71d9eYLFjRbOCkzZyYbxZpDJxXUjwQrNmjAnryt9tA0cFUFRQwEe7ezkBEsH-vXDk1rb-trbsg9YQIyhUz2zkL4DfdIf-NGphbLRgddoUmBE5aWwr7Nkmh2q7dILLCYsIsULCQVtzbZDUXcAqG_Qjzs9zk4yNnvo2-onW3CWY9vVUDfnmofyj_5vwaoLLJkWSzM333PbUr9YPRBfb-0nzJ_7cMBuNxaHWJKVBqTG0RlMCAZ-BiJT8xouasR0iUbgiGTv7hGqM-KpS2bCGJ6uLHV1BxSCOB8ICUyT85SSaV7qxdg&code=ab2c3082-a509-4cbd-a134-de88c4215599&scope=address+phone+openid+user_name+profile+email&id_token=eyJraWQiOiI5MjA3MzdmZC1mYWQ3LTQxNzAtOWU0OS00Y2Q2Yjc1N2EyNTRfc2lnX3JzMjU2IiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJhdF9oYXNoIjoid2NRa0YtX0hFc0NsdlNKdU1jdE5vdyIsImF1ZCI6IjEwYjdiY2EzLTI4MGQtNDFmZS1hMjgwLWFjYTY0MDdiMzdmYSIsImNfaGFzaCI6Im8xR1hSM1JwYmdWSHd2U2lzMG8zdXciLCJzdWIiOiIzX3pkQWRxS2xlMHdvMXJWWGJnN3BtYlZhaXZRcnBwVUZqUDZVcWd0LXVRIiwic19oYXNoIjoieG4welNkSWN0TkNidzdERTgxQnBRUSIsImF1dGhfdGltZSI6MTU3NTUyOTkwNCwiaXNzIjoiaHR0cHM6Ly9qZW5raW5zLWNiLmdsdXUub3JnIiwiZXhwIjoxNTc1NTMzNTA3LCJpYXQiOjE1NzU1Mjk5MDcsIm5vbmNlIjoiOTMxZjExMmUtYTU0Zi00NzI1LThlNDYtZmNlYjlmNTlmYjBlIiwib3hPcGVuSURDb25uZWN0VmVyc2lvbiI6Im9wZW5pZGNvbm5lY3QtMS4wIn0.EgGNakgGbqjFMhifkchYbbFAjYSG1XGwbZmGZu0iv4ox2NBbUPDW_A_h_XfhzpozXwTJ05HNCKZ6s57CChCZH1aQd_msGgqWlcKq2ApUYCY47YAx6Xt_yoAQSDSBK3E6S1a3HoUGfhjlP5We52bpVAgI3DGjXMcX9xhMYS6cyiEYKyntn51afubHjZGT41H8IuAehoDw62zja7PpR27_HPa6sNMVrGrq8FNJ5-uTUStlNWJEgVlygTP8XCNxFQ-aQrVp0obfsMKTmidZ0G20R3KZ-htMpceJQLdREQ8PELUj8CNg1Gn_cjJuOpX98YT5tOPyIOPAV3Vk-r_cuU0dbg&session_id=f19d354c-60c0-42d4-bfc4-82bc315972b6&state=41119e5d-b1b1-41b4-91a6-96befdc53d6e&token_type=bearer&session_state=5ac29a37160a2bfb2b860ecbdea10908525790c10d3d825e854d83023f99700f.124268a0-975c-4ce9-ad56-7147c9065e7a&expires_in=299

#######################################################
TEST: OpenID Connect Discovery
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
GET /.well-known/webfinger?resource=acct%3Atest_user%40jenkins-cb.gluu.org&rel=http%3A%2F%2Fopenid.net%2Fspecs%2Fconnect%2F1.0%2Fissuer HTTP/1.1
Host: jenkins-cb.gluu.org

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Connection: Keep-Alive
Content-Length: 187
Content-Type: application/jrd+json;charset=iso-8859-1
Date: Thu, 05 Dec 2019 07:11:47 GMT
Keep-Alive: timeout=5, max=100
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "subject": "acct:test_user@jenkins-cb.gluu.org",
    "links": [{
        "rel": "http://openid.net/specs/connect/1.0/issuer",
        "href": "https://jenkins-cb.gluu.org"
    }]
}


OpenID Connect Configuration
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
GET /.well-known/openid-configuration HTTP/1.1
Host: jenkins-cb.gluu.org

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Connection: Keep-Alive
Content-Length: 5934
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:11:47 GMT
Keep-Alive: timeout=5, max=100
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
  "request_parameter_supported" : true,
  "token_revocation_endpoint" : "https://jenkins-cb.gluu.org/oxauth/restv1/revoke",
  "introspection_endpoint" : "https://jenkins-cb.gluu.org/oxauth/restv1/introspection",
  "claims_parameter_supported" : true,
  "check_session_iframe" : "https://jenkins-cb.gluu.org/oxauth/opiframe.htm",
  "scopes_supported" : [ "address", "https://jenkins-cb.gluu.org/oxauth/restv1/uma/scopes/scim_access", "test", "clientinfo", "openid", "user_name", "profile", "uma_protection", "work_phone", "http://photoz.example.com/dev/scopes/view", "https://jenkins-cb.gluu.org/oxauth/restv1/uma/scopes/passport_access", "permission", "http://photoz.example.com/dev/scopes/all", "modify", "oxtrust-api-write", "oxtrust-api-read", "phone", "mobile_phone", "oxd", "org_name", "super_gluu_ro_session", "email" ],
  "issuer" : "https://jenkins-cb.gluu.org",
  "acr_values_supported" : [ "simple_password_auth", "basic_lock", "basic" ],
  "userinfo_encryption_enc_values_supported" : [ "RSA1_5", "RSA-OAEP", "A128KW", "A256KW" ],
  "id_token_encryption_enc_values_supported" : [ "A128CBC+HS256", "A256CBC+HS512", "A128GCM", "A256GCM" ],
  "authorization_endpoint" : "https://jenkins-cb.gluu.org/oxauth/restv1/authorize",
  "service_documentation" : "http://gluu.org/docs",
  "request_object_encryption_enc_values_supported" : [ "A128CBC+HS256", "A256CBC+HS512", "A128GCM", "A256GCM" ],
  "display_values_supported" : [ "page", "popup" ],
  "id_generation_endpoint" : "https://jenkins-cb.gluu.org/oxauth/restv1/id",
  "userinfo_signing_alg_values_supported" : [ "HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "ES256", "ES384", "ES512" ],
  "claims_supported" : [ "oxAuthRedirectURI", "street_address", "country", "zoneinfo", "birthdate", "gender", "formatted", "user_name", "oxAuthIdTokenSignedResponseAlg", "oxAuthScope", "work_phone", "phone_mobile_number", "preferred_username", "locale", "inum", "oxAuthAppType", "updated_at", "nickname", "member_of", "org_name", "email", "website", "email_verified", "profile", "locality", "phone_number_verified", "given_name", "middle_name", "picture", "name", "phone_number", "postal_code", "region", "family_name" ],
  "scope_to_claims_mapping" : [ {
    "permission" : [ ]
  }, {
    "modify" : [ ]
  }, {
    "profile" : [ "name", "family_name", "given_name", "middle_name", "nickname", "preferred_username", "profile", "picture", "website", "gender", "birthdate", "zoneinfo", "locale", "updated_at" ]
  }, {
    "mobile_phone" : [ "phone_mobile_number" ]
  }, {
    "oxd" : [ ]
  }, {
    "oxtrust-api-write" : [ ]
  }, {
    "clientinfo" : [ "name", "inum", "oxAuthAppType", "oxAuthIdTokenSignedResponseAlg", "oxAuthRedirectURI", "oxAuthScope" ]
  }, {
    "email" : [ "email_verified", "email" ]
  }, {
    "test" : [ "member_of" ]
  }, {
    "work_phone" : [ "work_phone" ]
  }, {
    "http://photoz.example.com/dev/scopes/view" : [ ]
  }, {
    "uma_protection" : [ ]
  }, {
    "http://photoz.example.com/dev/scopes/all" : [ ]
  }, {
    "openid" : [ ]
  }, {
    "oxtrust-api-read" : [ ]
  }, {
    "address" : [ "formatted", "postal_code", "street_address", "locality", "country", "region" ]
  }, {
    "user_name" : [ "user_name" ]
  }, {
    "org_name" : [ "org_name" ]
  }, {
    "super_gluu_ro_session" : [ ]
  }, {
    "https://jenkins-cb.gluu.org/oxauth/restv1/uma/scopes/scim_access" : [ ]
  }, {
    "https://jenkins-cb.gluu.org/oxauth/restv1/uma/scopes/passport_access" : [ ]
  }, {
    "phone" : [ "phone_number_verified", "phone_number" ]
  } ],
  "claim_types_supported" : [ "normal" ],
  "op_policy_uri" : "http://ox.gluu.org/doku.php?id=oxauth:policy",
  "token_endpoint_auth_methods_supported" : [ "client_secret_basic", "client_secret_post", "client_secret_jwt", "private_key_jwt" ],
  "tls_client_certificate_bound_access_tokens" : true,
  "response_modes_supported" : [ "fragment", "query", "form_post" ],
  "token_endpoint" : "https://jenkins-cb.gluu.org/oxauth/restv1/token",
  "response_types_supported" : [ "code", "code token id_token", "token", "code token", "id_token", "code id_token", "token id_token" ],
  "request_uri_parameter_supported" : true,
  "userinfo_encryption_alg_values_supported" : [ "RSA1_5", "RSA-OAEP", "A128KW", "A256KW" ],
  "grant_types_supported" : [ "client_credentials", "refresh_token", "authorization_code", "password", "urn:ietf:params:oauth:grant-type:uma-ticket", "implicit" ],
  "end_session_endpoint" : "https://jenkins-cb.gluu.org/oxauth/restv1/end_session",
  "ui_locales_supported" : [ "en", "es" ],
  "userinfo_endpoint" : "https://jenkins-cb.gluu.org/oxauth/restv1/userinfo",
  "token_endpoint_auth_signing_alg_values_supported" : [ "HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "ES256", "ES384", "ES512" ],
  "op_tos_uri" : "http://ox.gluu.org/doku.php?id=oxauth:tos",
  "frontchannel_logout_supported" : true,
  "auth_level_mapping" : {
    "-1" : [ "simple_password_auth" ],
    "20" : [ "basic_lock" ],
    "10" : [ "basic" ]
  },
  "require_request_uri_registration" : false,
  "id_token_encryption_alg_values_supported" : [ "RSA1_5", "RSA-OAEP", "A128KW", "A256KW" ],
  "jwks_uri" : "https://jenkins-cb.gluu.org/oxauth/restv1/jwks",
  "frontchannel_logout_session_supported" : true,
  "subject_types_supported" : [ "public", "pairwise" ],
  "id_token_signing_alg_values_supported" : [ "none", "HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "ES256", "ES384", "ES512" ],
  "registration_endpoint" : "https://jenkins-cb.gluu.org/oxauth/restv1/register",
  "claims_locales_supported" : [ "en" ],
  "clientinfo_endpoint" : "https://jenkins-cb.gluu.org/oxauth/restv1/clientinfo",
  "request_object_signing_alg_values_supported" : [ "none", "HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "ES256", "ES384", "ES512" ],
  "request_object_encryption_alg_values_supported" : [ "RSA1_5", "RSA-OAEP", "A128KW", "A256KW" ],
  "id_token_token_binding_cnf_values_supported" : [ "tbh" ]
}


#######################################################
TEST: authorizationCodeDynamicScopeFlow
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "subject_type" : "pairwise",
  "application_type" : "web",
  "scope" : "openid profile address email user_name org_name work_phone",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "sector_identifier_uri" : "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "client_name" : "oxAuth test app",
  "response_types" : [ "code", "id_token" ]
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1645
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:11:47 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=df867e3f-0462-485f-a59b-ff8887664018",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "7e3fce5c-3c1e-4ecb-b993-9c8e888d900e",
    "client_id": "df867e3f-0462-485f-a59b-ff8887664018",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "address profile email user_name work_phone org_name openid",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "400d1d7a-963a-4699-a398-f4d6b4dfa763",
    "client_id_issued_at": 1575529907,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": [
        "refresh_token",
        "authorization_code",
        "implicit"
    ],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616307,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": [
        "code",
        "token",
        "id_token"
    ]
}

authenticateResourceOwnerAndGrantAccess: Cleaning cookies
authenticateResourceOwnerAndGrantAccess: authorizationRequestUrl:https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=code+id_token&client_id=df867e3f-0462-485f-a59b-ff8887664018&scope=openid+profile+address+email+user_name+org_name+work_phone&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=1016c534-c9f1-49d4-9710-2f10d46236b9&nonce=c3bf0818-dd8f-42ba-9a52-6351e6b416aa
authenticateResourceOwnerAndGrantAccess: sessionState:819eb2dd0d8fc9fcf2f5d3169369b10a26cc5210cdf3cac2fa56c5bddf513ac0.e4a9f055-7ced-4b0a-9533-d86aa011433b
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=code+id_token&client_id=df867e3f-0462-485f-a59b-ff8887664018&scope=openid+profile+address+email+user_name+org_name+work_phone&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=1016c534-c9f1-49d4-9710-2f10d46236b9&nonce=c3bf0818-dd8f-42ba-9a52-6351e6b416aa

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm#code=cf44adc1-ce64-4e7d-ba5b-cdb58b36110c&scope=address+openid+user_name+profile+work_phone+org_name+email&id_token=eyJraWQiOiI5MjA3MzdmZC1mYWQ3LTQxNzAtOWU0OS00Y2Q2Yjc1N2EyNTRfc2lnX3JzMjU2IiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJhdWQiOiJkZjg2N2UzZi0wNDYyLTQ4NWYtYTU5Yi1mZjg4ODc2NjQwMTgiLCJjX2hhc2giOiJfY0Q5OXVORmZvRDExdzhQWnBvYy13Iiwic3ViIjoiYUhIcUlIcFJTOHNMUXRDR1EyQXRJWUxVY09WVTB3cVBsOFl0NFN5RE1rOCIsInNfaGFzaCI6IjgzcEpZMjNaRWxPZHhGMzg5TGxsRmciLCJhdXRoX3RpbWUiOjE1NzU1Mjk5MDgsImlzcyI6Imh0dHBzOi8vamVua2lucy1jYi5nbHV1Lm9yZyIsImV4cCI6MTU3NTUzMzUxMSwiaWF0IjoxNTc1NTI5OTExLCJub25jZSI6ImMzYmYwODE4LWRkOGYtNDJiYS05YTUyLTYzNTFlNmI0MTZhYSIsIm94T3BlbklEQ29ubmVjdFZlcnNpb24iOiJvcGVuaWRjb25uZWN0LTEuMCJ9.f_fulF1vGLEFVpco00KM0tvsMQx6lJqG2jiSWNQmphN64YxExuc5DSu5PQG6-AGR9HH46Abh3dIdy1dRyPTyo5xlKTsJiij-jGyTBAYyf8JabPDHb6KlbNSaCAlVZzM1GY9qLb-oqQ6pnkIJBPCvFuw4d95ECEmQ0yaj8mDMpniCLYFfGIj_TrWFongl4fbxoXYOORsnK-yUCV839CsaHzMxqQjXx58rqnhRPCdIvvgrUmsqxFyUushNick3FFlqosWYUsnjxbwTqdvbS8IV-hEgit0qL3PRKnkY6OSpufE-AU1WHrhwy_7vrmC_wQDa1Cdss4raQ9FHYzu46mNp6g&session_id=52642bc1-ea6d-46a2-b7d2-6631c130c7bf&state=1016c534-c9f1-49d4-9710-2f10d46236b9&session_state=819eb2dd0d8fc9fcf2f5d3169369b10a26cc5210cdf3cac2fa56c5bddf513ac0.e4a9f055-7ced-4b0a-9533-d86aa011433b

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/token HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Host: jenkins-cb.gluu.org
Authorization: Basic ZGY4NjdlM2YtMDQ2Mi00ODVmLWE1OWItZmY4ODg3NjY0MDE4OjQwMGQxZDdhLTk2M2EtNDY5OS1hMzk4LWY0ZDZiNGRmYTc2Mw==

grant_type=authorization_code&code=cf44adc1-ce64-4e7d-ba5b-cdb58b36110c&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1041
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:11:51 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{"access_token":"98855ff4-48bb-42af-a99b-61c75bdc6f6c","refresh_token":"2e6da927-3ec1-4b42-83f4-9c7e33d1bd7f","id_token":"eyJraWQiOiI5MjA3MzdmZC1mYWQ3LTQxNzAtOWU0OS00Y2Q2Yjc1N2EyNTRfc2lnX3JzMjU2IiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJhdF9oYXNoIjoiOElOdkQ0TnZ1eE9pNVl1andMVXdIUSIsImF1ZCI6ImRmODY3ZTNmLTA0NjItNDg1Zi1hNTliLWZmODg4NzY2NDAxOCIsInN1YiI6ImFISHFJSHBSUzhzTFF0Q0dRMkF0SVlMVWNPVlUwd3FQbDhZdDRTeURNazgiLCJhdXRoX3RpbWUiOjE1NzU1Mjk5MDgsImlzcyI6Imh0dHBzOi8vamVua2lucy1jYi5nbHV1Lm9yZyIsImV4cCI6MTU3NTUzMzUxMSwiaWF0IjoxNTc1NTI5OTExLCJub25jZSI6ImMzYmYwODE4LWRkOGYtNDJiYS05YTUyLTYzNTFlNmI0MTZhYSIsIm94T3BlbklEQ29ubmVjdFZlcnNpb24iOiJvcGVuaWRjb25uZWN0LTEuMCJ9.RJvu6S5qgWxIKHZb-4erwC85iGOvvYT-DsZmMQkG_k8DkiHP2Sqxh0mpIq_4azKnrRnjJB8pZD-4cO1tJ_7gf4n9w8HnrO5tKR0XCrjP6EnUApTRtFBpGYhRUNp8yN82_tBtnoSqxo3uQo0rE6mjEswYpJAeD7uHDuQ-SA9UzWkfI9N8iyB-smL7O7OSg5qRReNBUio_ElEgZRL-XoaW8EiNEZdi-Ktincq9cdyY7elTStNpCce_virz1iv4Uxe-hDDhL62An6LH21NKX2VYUxRR8u4-YVtopZN6YF3P00z4Tc6ZxyK42MpRZLCeUm7nsVK8I000sWEhvZslzzQPHA","token_type":"bearer","expires_in":299}

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
GET /oxauth/restv1/userinfo HTTP/1.1
Host: jenkins-cb.gluu.org
Authorization: Bearer 98855ff4-48bb-42af-a99b-61c75bdc6f6c

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store, private
Connection: Keep-Alive
Content-Length: 694
Content-Type: application/json;charset=utf-8
Date: Thu, 05 Dec 2019 07:11:51 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{"sub":"aHHqIHpRS8sLQtCGQ2AtIYLUcOVU0wqPl8Yt4SyDMk8","website":"http://www.gluu.org","zoneinfo":"America/Chicago","address":{"street_address":"621 East 6th Street","country":"US","locality":"Austin","region":"Texas"},"birthdate":"1983-01-06T01:05:14.000","email_verified":true,"gender":"Male","user_name":"test_user","profile":"http://www.mywebsite.com/profile","work_phone":["(512) 516-2413"],"preferred_username":"user","given_name":"Test","middle_name":"User","locale":"en-US","picture":"http://www.gluu.org/wp-content/uploads/2012/04/mike3.png","updated_at":1486994332000,"name":"oxAuth Test User","nickname":"user","org_name":"Gluu, Inc.","family_name":"User","email":"test_user@test.org"}

#######################################################
TEST: authorizationCodeFlow
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "subject_type" : "pairwise",
  "application_type" : "web",
  "scope" : "openid profile address email phone user_name",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "sector_identifier_uri" : "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "client_name" : "oxAuth test app",
  "response_types" : [ "code", "id_token" ]
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1631
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:11:51 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=65de12c4-d8b1-439a-aa81-5a9a81774de3",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "f143b161-6eeb-4e47-8076-c77d60439a5b",
    "client_id": "65de12c4-d8b1-439a-aa81-5a9a81774de3",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "phone address profile email user_name openid",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "480c4a45-2570-4791-bd1f-510082824180",
    "client_id_issued_at": 1575529911,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": [
        "refresh_token",
        "authorization_code",
        "implicit"
    ],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616311,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": [
        "code",
        "token",
        "id_token"
    ]
}

authenticateResourceOwnerAndGrantAccess: Cleaning cookies
authenticateResourceOwnerAndGrantAccess: authorizationRequestUrl:https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=code+id_token&client_id=65de12c4-d8b1-439a-aa81-5a9a81774de3&scope=openid+profile+address+email+phone+user_name&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=e8d85d86-0037-4689-92d8-08d7e5bad89a&nonce=3586ff15-0831-4afc-8bae-7bcc8cf5887d
authenticateResourceOwnerAndGrantAccess: sessionState:13602757031a673d840bff494d4406f9506b345f768234d41e0abd01fbc41b93.13058687-6e84-4e6c-8c9f-e21e42d39794
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=code+id_token&client_id=65de12c4-d8b1-439a-aa81-5a9a81774de3&scope=openid+profile+address+email+phone+user_name&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=e8d85d86-0037-4689-92d8-08d7e5bad89a&nonce=3586ff15-0831-4afc-8bae-7bcc8cf5887d

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm#code=c9f08a1d-ade9-4b45-971c-8c14c24f8630&scope=address+phone+openid+user_name+profile+email&id_token=eyJraWQiOiI5MjA3MzdmZC1mYWQ3LTQxNzAtOWU0OS00Y2Q2Yjc1N2EyNTRfc2lnX3JzMjU2IiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJhdWQiOiI2NWRlMTJjNC1kOGIxLTQzOWEtYWE4MS01YTlhODE3NzRkZTMiLCJjX2hhc2giOiJxZVE5ajdiU1c3aU9CMG41eHJUUDV3Iiwic3ViIjoiYUhIcUlIcFJTOHNMUXRDR1EyQXRJWUxVY09WVTB3cVBsOFl0NFN5RE1rOCIsInNfaGFzaCI6Ii12TllyOVRMdEFSdWxtU1pSVHBWRUEiLCJhdXRoX3RpbWUiOjE1NzU1Mjk5MTIsImlzcyI6Imh0dHBzOi8vamVua2lucy1jYi5nbHV1Lm9yZyIsImV4cCI6MTU3NTUzMzUxNSwiaWF0IjoxNTc1NTI5OTE1LCJub25jZSI6IjM1ODZmZjE1LTA4MzEtNGFmYy04YmFlLTdiY2M4Y2Y1ODg3ZCIsIm94T3BlbklEQ29ubmVjdFZlcnNpb24iOiJvcGVuaWRjb25uZWN0LTEuMCJ9.Xguk8Ut7-5jJKUHlRgsZQgiqX2jQA8SzWGrE2HbBpDzCuQ2Jx5XOloKnuKdnbeK4JbLRjt4n5sTId9-vgK_8V15Ywn9oHB121rscA97M9lKQ63mBUaA7ZTjNhwn_UORmTse00Z7gfoEi5XUwHi2PFvG3Y9lnz6eYrPRhaYO3JDZKoewmLyuJ752awnlLWW8suDFGUC0o8mvByTVeDNlmrUSTHNMjnGa6VZVjtev_6Ppm52qBqZppt3EnOsjEiTCKd2Mne0DJIMn_0JARDG_a2o_t_jeNqD2yMPV4rs0ICU1RZ8PCGfI7vu2yuCbkb3uawvO_XjYtj0VgnrbIEK1dbQ&session_id=3ac9955a-c0f6-49f1-a85c-970917b0f239&state=e8d85d86-0037-4689-92d8-08d7e5bad89a&session_state=13602757031a673d840bff494d4406f9506b345f768234d41e0abd01fbc41b93.13058687-6e84-4e6c-8c9f-e21e42d39794

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/token HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Host: jenkins-cb.gluu.org
Authorization: Basic NjVkZTEyYzQtZDhiMS00MzlhLWFhODEtNWE5YTgxNzc0ZGUzOjQ4MGM0YTQ1LTI1NzAtNDc5MS1iZDFmLTUxMDA4MjgyNDE4MA==

grant_type=authorization_code&code=c9f08a1d-ade9-4b45-971c-8c14c24f8630&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1041
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:11:55 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{"access_token":"4f9995bf-e5cd-4f04-93cd-2ad36e45ed71","refresh_token":"3ba362a3-389a-4541-afaa-6c3eaebb955b","id_token":"eyJraWQiOiI5MjA3MzdmZC1mYWQ3LTQxNzAtOWU0OS00Y2Q2Yjc1N2EyNTRfc2lnX3JzMjU2IiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJhdF9oYXNoIjoiRTlBdmx6ajUxNVZqc2xqUUZRTDBfUSIsImF1ZCI6IjY1ZGUxMmM0LWQ4YjEtNDM5YS1hYTgxLTVhOWE4MTc3NGRlMyIsInN1YiI6ImFISHFJSHBSUzhzTFF0Q0dRMkF0SVlMVWNPVlUwd3FQbDhZdDRTeURNazgiLCJhdXRoX3RpbWUiOjE1NzU1Mjk5MTIsImlzcyI6Imh0dHBzOi8vamVua2lucy1jYi5nbHV1Lm9yZyIsImV4cCI6MTU3NTUzMzUxNSwiaWF0IjoxNTc1NTI5OTE1LCJub25jZSI6IjM1ODZmZjE1LTA4MzEtNGFmYy04YmFlLTdiY2M4Y2Y1ODg3ZCIsIm94T3BlbklEQ29ubmVjdFZlcnNpb24iOiJvcGVuaWRjb25uZWN0LTEuMCJ9.c8RBkLClM-Bovhek_fJFFMUEniNY12HdQO1SntWxlq_q4HRETuRSzaYFxrEBXE1oUFRbrn4Nx2W93i1zfLbEEE5qAYG6sP89kR8ziHDM3e7QGx44Fz8b1FqQY9A4b2cNhIZdxfRlf-xAF2mmbgNWg8HauTHxQD6JOk8IcgFITc9Wgrnr_ZY-CZH6t7GjvwNY2DaNk5a-wrfjHDCxFoFAS-WZ_IJoQlOT2GV2rcQJMtQeZkH-CtVVt04rFhs3aZuoSzST5AZ88M7fawZTSQQwQNil_IgkWN3YRIoySaTvZvXi1CBkqIVIaEafHio1dV8qTmxO2deAeNY8juSsU9n2qQ","token_type":"bearer","expires_in":299}

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/token HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Host: jenkins-cb.gluu.org
Authorization: Basic NjVkZTEyYzQtZDhiMS00MzlhLWFhODEtNWE5YTgxNzc0ZGUzOjQ4MGM0YTQ1LTI1NzAtNDc5MS1iZDFmLTUxMDA4MjgyNDE4MA==

grant_type=refresh_token&scope=address+phone+openid+user_name+profile+email&refresh_token=3ba362a3-389a-4541-afaa-6c3eaebb955b

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 204
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:11:55 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{"access_token":"2c9864da-c785-4fe6-929d-3aca9fa3c07a","refresh_token":"669b3d12-6b50-4457-b409-0a886e40ef8a","scope":"address phone openid user_name profile email","token_type":"bearer","expires_in":299}

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
GET /oxauth/restv1/userinfo HTTP/1.1
Host: jenkins-cb.gluu.org
Authorization: Bearer 2c9864da-c785-4fe6-929d-3aca9fa3c07a

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store, private
Connection: Keep-Alive
Content-Length: 699
Content-Type: application/json;charset=utf-8
Date: Thu, 05 Dec 2019 07:11:55 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{"sub":"aHHqIHpRS8sLQtCGQ2AtIYLUcOVU0wqPl8Yt4SyDMk8","website":"http://www.gluu.org","zoneinfo":"America/Chicago","address":{"street_address":"621 East 6th Street","country":"US","locality":"Austin","region":"Texas"},"birthdate":"1983-01-06T01:05:14.000","email_verified":true,"gender":"Male","user_name":"test_user","profile":"http://www.mywebsite.com/profile","phone_number_verified":true,"preferred_username":"user","given_name":"Test","middle_name":"User","locale":"en-US","picture":"http://www.gluu.org/wp-content/uploads/2012/04/mike3.png","updated_at":1486994332000,"name":"oxAuth Test User","nickname":"user","phone_number":"(512) 516-2413","family_name":"User","email":"test_user@test.org"}

#######################################################
TEST: authorizationCodeFlowLoginHint
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "subject_type" : "pairwise",
  "application_type" : "web",
  "scope" : "openid profile address email user_name",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "sector_identifier_uri" : "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "client_name" : "oxAuth test app",
  "response_types" : [ "code", "id_token" ]
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1625
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:11:55 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=b7f66009-ec58-4d76-a74e-0d1b5186d621",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "4f875236-6718-4734-b296-ab1b21f8be35",
    "client_id": "b7f66009-ec58-4d76-a74e-0d1b5186d621",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "address profile email user_name openid",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "860a6009-47c5-4e3f-992b-36292198f7c9",
    "client_id_issued_at": 1575529915,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": [
        "refresh_token",
        "authorization_code",
        "implicit"
    ],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616315,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": [
        "code",
        "token",
        "id_token"
    ]
}

authenticateResourceOwnerAndGrantAccess: Cleaning cookies
authenticateResourceOwnerAndGrantAccess: authorizationRequestUrl:https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=code+id_token&client_id=b7f66009-ec58-4d76-a74e-0d1b5186d621&scope=openid+profile+address+email+user_name&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=bc3d5a7d-7c88-4d76-808f-2c7717a1b1dd&nonce=d5198ad4-1edc-4d62-909a-71e0212daa1f&login_hint=test_user
authenticateResourceOwnerAndGrantAccess: sessionState:764fc1c3181805229ee3887dc084e16b6c952570798958466fa89a05eea3fd5f.87f63c07-9995-4288-87df-aa8d6533c9c5
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=code+id_token&client_id=b7f66009-ec58-4d76-a74e-0d1b5186d621&scope=openid+profile+address+email+user_name&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=bc3d5a7d-7c88-4d76-808f-2c7717a1b1dd&nonce=d5198ad4-1edc-4d62-909a-71e0212daa1f&login_hint=test_user

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm#code=b6759c6c-ed2e-43f5-ace5-df411b396007&scope=address+openid+user_name+profile+email&id_token=eyJraWQiOiI5MjA3MzdmZC1mYWQ3LTQxNzAtOWU0OS00Y2Q2Yjc1N2EyNTRfc2lnX3JzMjU2IiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJhdWQiOiJiN2Y2NjAwOS1lYzU4LTRkNzYtYTc0ZS0wZDFiNTE4NmQ2MjEiLCJjX2hhc2giOiJGSE4ya19kOHgtbGpwR18wcG1vU2dnIiwic3ViIjoiYUhIcUlIcFJTOHNMUXRDR1EyQXRJWUxVY09WVTB3cVBsOFl0NFN5RE1rOCIsInNfaGFzaCI6IkdMSk1hNk15eE92eG0zMjFCb1lZTlEiLCJhdXRoX3RpbWUiOjE1NzU1Mjk5MTYsImlzcyI6Imh0dHBzOi8vamVua2lucy1jYi5nbHV1Lm9yZyIsImV4cCI6MTU3NTUzMzUxOSwiaWF0IjoxNTc1NTI5OTE5LCJub25jZSI6ImQ1MTk4YWQ0LTFlZGMtNGQ2Mi05MDlhLTcxZTAyMTJkYWExZiIsIm94T3BlbklEQ29ubmVjdFZlcnNpb24iOiJvcGVuaWRjb25uZWN0LTEuMCJ9.dtMotMUGsn9OqAyHcOtqg143RdV0Du-mvykpG_N_8lVuiKJsCjbGp3Bl45u-376UPaluKT4g9cIfmujMrpUT4dPaaZaYyFNbIzfz8KONHYJMTElfmt8t3EBQgiVZnnugGxE6GN73aQx8M_OkmiLpIIbVnrbpqxBVtr3KJhqPFA_CDDkXU3w8a-2S4qvdrcGzVeNlo_K75oIJC-RQkeibwb9gTDRb4UKLf6YSWiXZvU7dHt9yA31jzgGidwSOTIuiCUMEbb86CIDEZGYgGuIkHMSl0IujBqVcUUNwLD0alsf5fr6aNFHZvYDXZlLYfDLc7WamfwN66wMKwc09YBGhfQ&session_id=652d12c5-8778-45bb-a174-efba5f7b2d5a&state=bc3d5a7d-7c88-4d76-808f-2c7717a1b1dd&session_state=764fc1c3181805229ee3887dc084e16b6c952570798958466fa89a05eea3fd5f.87f63c07-9995-4288-87df-aa8d6533c9c5

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/token HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Host: jenkins-cb.gluu.org
Authorization: Basic YjdmNjYwMDktZWM1OC00ZDc2LWE3NGUtMGQxYjUxODZkNjIxOjg2MGE2MDA5LTQ3YzUtNGUzZi05OTJiLTM2MjkyMTk4ZjdjOQ==

grant_type=authorization_code&code=b6759c6c-ed2e-43f5-ace5-df411b396007&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1041
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:11:59 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{"access_token":"c1331ecb-4903-4e40-97ac-d451cf13984b","refresh_token":"c88e0c04-d06f-4ad9-a427-be1fd814783d","id_token":"eyJraWQiOiI5MjA3MzdmZC1mYWQ3LTQxNzAtOWU0OS00Y2Q2Yjc1N2EyNTRfc2lnX3JzMjU2IiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJhdF9oYXNoIjoiMGRRcGM1OFc1NmhTYlhkTWdpWW9hUSIsImF1ZCI6ImI3ZjY2MDA5LWVjNTgtNGQ3Ni1hNzRlLTBkMWI1MTg2ZDYyMSIsInN1YiI6ImFISHFJSHBSUzhzTFF0Q0dRMkF0SVlMVWNPVlUwd3FQbDhZdDRTeURNazgiLCJhdXRoX3RpbWUiOjE1NzU1Mjk5MTYsImlzcyI6Imh0dHBzOi8vamVua2lucy1jYi5nbHV1Lm9yZyIsImV4cCI6MTU3NTUzMzUxOSwiaWF0IjoxNTc1NTI5OTE5LCJub25jZSI6ImQ1MTk4YWQ0LTFlZGMtNGQ2Mi05MDlhLTcxZTAyMTJkYWExZiIsIm94T3BlbklEQ29ubmVjdFZlcnNpb24iOiJvcGVuaWRjb25uZWN0LTEuMCJ9.YuYx66JbjsN1a4Zg8_w_dF70PkvR7114qFIXkUI9SB7wRFgsp-fkLeqk-gSIAR2G-d8-eYabYbyZ-E8FlrzS7op77S90kYReOS2t2BpnKFKdHkrSsDDein1xJGbIZrklG9tvPhLGpQUZtTHl5BglnLMGnnCNm-npQy331iWIIeuD9x0biP1a-9S4YZ--Fv5C5rykfaCHqXA-SpXjD4xxCiYJtx2Y5dhWnjI5KAaMbY_6lqcLiJpbidlIiS6iwjgWhk-ubvT4G7fvcmAL64TMzJ8nf4OIupn9B1tvs_vFZSIX5WbmBt_ki61udJDRPwoXQ6Fi204pzs8Dcp0mUQGZHg","token_type":"bearer","expires_in":299}

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/token HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Host: jenkins-cb.gluu.org
Authorization: Basic YjdmNjYwMDktZWM1OC00ZDc2LWE3NGUtMGQxYjUxODZkNjIxOjg2MGE2MDA5LTQ3YzUtNGUzZi05OTJiLTM2MjkyMTk4ZjdjOQ==

grant_type=refresh_token&scope=address+openid+user_name+profile+email&refresh_token=c88e0c04-d06f-4ad9-a427-be1fd814783d

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 198
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:11:59 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{"access_token":"aa414728-8822-4be9-9d70-a78970375485","refresh_token":"68b5b1dd-90e4-4fb8-abf1-d5d2ff503db2","scope":"address openid user_name profile email","token_type":"bearer","expires_in":299}

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
GET /oxauth/restv1/userinfo HTTP/1.1
Host: jenkins-cb.gluu.org
Authorization: Bearer aa414728-8822-4be9-9d70-a78970375485

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store, private
Connection: Keep-Alive
Content-Length: 638
Content-Type: application/json;charset=utf-8
Date: Thu, 05 Dec 2019 07:11:59 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{"sub":"aHHqIHpRS8sLQtCGQ2AtIYLUcOVU0wqPl8Yt4SyDMk8","website":"http://www.gluu.org","zoneinfo":"America/Chicago","address":{"street_address":"621 East 6th Street","country":"US","locality":"Austin","region":"Texas"},"birthdate":"1983-01-06T01:05:14.000","email_verified":true,"gender":"Male","user_name":"test_user","profile":"http://www.mywebsite.com/profile","preferred_username":"user","given_name":"Test","middle_name":"User","locale":"en-US","picture":"http://www.gluu.org/wp-content/uploads/2012/04/mike3.png","updated_at":1486994332000,"name":"oxAuth Test User","nickname":"user","family_name":"User","email":"test_user@test.org"}

#######################################################
TEST: authorizationCodeFlowNegativeTest
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "subject_type" : "pairwise",
  "application_type" : "web",
  "scope" : "openid",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "sector_identifier_uri" : "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "client_name" : "oxAuth test app",
  "response_types" : [ "code", "id_token" ]
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1593
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:11:59 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=403479ab-d025-4a57-9abf-9b8e41fdd41b",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "f7e83e29-a305-4c7a-b1b2-f8bc68f31fd7",
    "client_id": "403479ab-d025-4a57-9abf-9b8e41fdd41b",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "openid",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "173c2b0a-470b-4063-8618-8746a5c3f1b2",
    "client_id_issued_at": 1575529919,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": [
        "refresh_token",
        "authorization_code",
        "implicit"
    ],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616319,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": [
        "code",
        "token",
        "id_token"
    ]
}

authenticateResourceOwnerAndGrantAccess: Cleaning cookies
authenticateResourceOwnerAndGrantAccess: authorizationRequestUrl:https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=code+id_token&client_id=403479ab-d025-4a57-9abf-9b8e41fdd41b&scope=openid+profile+address+email+phone+user_name&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=7d09a963-545c-4a72-8289-22f7f0cd0e16&nonce=ac3dec19-ecde-42c8-af2f-7da7701a3147
authenticateResourceOwnerAndGrantAccess: sessionState:1ed60ebf58c5c00f89efe5922b5f6e1c5090d9f950daacde0c36e161ce1a408f.4adece12-9079-416f-a2be-0ce9d431819b
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=code+id_token&client_id=403479ab-d025-4a57-9abf-9b8e41fdd41b&scope=openid+profile+address+email+phone+user_name&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=7d09a963-545c-4a72-8289-22f7f0cd0e16&nonce=ac3dec19-ecde-42c8-af2f-7da7701a3147

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm#code=5e568552-a350-42e8-a539-a780c101101c&scope=openid&id_token=eyJraWQiOiI5MjA3MzdmZC1mYWQ3LTQxNzAtOWU0OS00Y2Q2Yjc1N2EyNTRfc2lnX3JzMjU2IiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJhdWQiOiI0MDM0NzlhYi1kMDI1LTRhNTctOWFiZi05YjhlNDFmZGQ0MWIiLCJjX2hhc2giOiJ2bXhOamdjeHRKVVBEMElEYVBkMW1RIiwic3ViIjoiYUhIcUlIcFJTOHNMUXRDR1EyQXRJWUxVY09WVTB3cVBsOFl0NFN5RE1rOCIsInNfaGFzaCI6IlF6WkttNHYzaVpTYUtjVjZ3M0FaNnciLCJhdXRoX3RpbWUiOjE1NzU1Mjk5MjAsImlzcyI6Imh0dHBzOi8vamVua2lucy1jYi5nbHV1Lm9yZyIsImV4cCI6MTU3NTUzMzUyMywiaWF0IjoxNTc1NTI5OTIzLCJub25jZSI6ImFjM2RlYzE5LWVjZGUtNDJjOC1hZjJmLTdkYTc3MDFhMzE0NyIsIm94T3BlbklEQ29ubmVjdFZlcnNpb24iOiJvcGVuaWRjb25uZWN0LTEuMCJ9.Z8p5a7AiAEBJjV80gelbSC6rExwt-ZgQR1enOieqU3GyI7-o6Kr0nRIXcr1uo5ynNHua-0458ZGCL9GZMnA18Ifkil6xKJhVWfeXXaLy36u2DcJ5T72krcIyxbv2RMRlL-xPBAGm9SVBVBbLVQtNNiKZifQ1c6OzXV2dHToqBzMkOcHf8gn5HBB4tjMYY_em_FJEAU6ByX76SWFZRuxkLlawBRQIRpwMHP4W8-B36mMU1YSjxJbZzGErhtIEx49lJ2sxgeUgdTt_NUKcYBrp1uZh0Al_MQj9H0HLUQMNiesWC-F3yTh5ZY_D-2OTRmFXfXg7P1FsWQ2L8lRV3fxHrQ&session_id=2d3e7da0-f52f-410c-9fbe-0f33bce96c5a&state=7d09a963-545c-4a72-8289-22f7f0cd0e16&session_state=1ed60ebf58c5c00f89efe5922b5f6e1c5090d9f950daacde0c36e161ce1a408f.4adece12-9079-416f-a2be-0ce9d431819b

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/token HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Host: jenkins-cb.gluu.org
Authorization: Basic NDAzNDc5YWItZDAyNS00YTU3LTlhYmYtOWI4ZTQxZmRkNDFiOjE3M2MyYjBhLTQ3MGItNDA2My04NjE4LTg3NDZhNWMzZjFiMg==

grant_type=authorization_code&code=5e568552-a350-42e8-a539-a780c101101c&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1041
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:12:03 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{"access_token":"92f8e88e-e5a6-4179-9971-c8f132625b98","refresh_token":"8bc616ac-8f88-4cb3-be84-0b33e108ec88","id_token":"eyJraWQiOiI5MjA3MzdmZC1mYWQ3LTQxNzAtOWU0OS00Y2Q2Yjc1N2EyNTRfc2lnX3JzMjU2IiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJhdF9oYXNoIjoiSjZBM0lxa2JBVEFwQ1dmMFh5YzZtdyIsImF1ZCI6IjQwMzQ3OWFiLWQwMjUtNGE1Ny05YWJmLTliOGU0MWZkZDQxYiIsInN1YiI6ImFISHFJSHBSUzhzTFF0Q0dRMkF0SVlMVWNPVlUwd3FQbDhZdDRTeURNazgiLCJhdXRoX3RpbWUiOjE1NzU1Mjk5MjAsImlzcyI6Imh0dHBzOi8vamVua2lucy1jYi5nbHV1Lm9yZyIsImV4cCI6MTU3NTUzMzUyMywiaWF0IjoxNTc1NTI5OTIzLCJub25jZSI6ImFjM2RlYzE5LWVjZGUtNDJjOC1hZjJmLTdkYTc3MDFhMzE0NyIsIm94T3BlbklEQ29ubmVjdFZlcnNpb24iOiJvcGVuaWRjb25uZWN0LTEuMCJ9.M8NUKgdf71r1wifYFfQ5z1KHPzaYJEb47q2HTQBzYTsdCHdIM_-uZBB9gtcYGYU2rymnwRb-0184sYiypnfeE2ni34rn5knOgB0KAHjCO7fQPGVl_Fjr7XkcCbBhLlyeo9IykEyhkiE0qmJHIQJreLV0gmHHW0lWJjccpAYRmfbcK1ZZtE-y_Vxdc4ClNuL-D_p36j81FwqUTVkPkcMUd02nBc2nJqzWrS0mDZ7r5BetJUg_uqvNkaM825yxi0uj1c907MjuOhV_cfKWDOL4AAd1o7_6oKMkRHIA5DxUGkYM-mtUWPxnW6ZNbuUJ5UVnWBWn14cuRAT2f0qyze6l4g","token_type":"bearer","expires_in":299}

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/token HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Host: jenkins-cb.gluu.org
Authorization: Basic NDAzNDc5YWItZDAyNS00YTU3LTlhYmYtOWI4ZTQxZmRkNDFiOjE3M2MyYjBhLTQ3MGItNDA2My04NjE4LTg3NDZhNWMzZjFiMg==

grant_type=refresh_token&scope=openid&refresh_token=8bc616ac-8f88-4cb3-be84-0b33e108ec88

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 166
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:12:03 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{"access_token":"41f5e899-4ec2-4aa3-ac88-2414611f0184","refresh_token":"36b38222-9129-4b4c-bfc1-95f399a6b17a","scope":"openid","token_type":"bearer","expires_in":299}

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
GET /oxauth/restv1/userinfo HTTP/1.1
Host: jenkins-cb.gluu.org
Authorization: Bearer 41f5e899-4ec2-4aa3-ac88-2414611f0184

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store, private
Connection: Keep-Alive
Content-Length: 53
Content-Type: application/json;charset=utf-8
Date: Thu, 05 Dec 2019 07:12:03 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{"sub":"aHHqIHpRS8sLQtCGQ2AtIYLUcOVU0wqPl8Yt4SyDMk8"}

#######################################################
TEST: authorizationCodeFlowWithOptionalNonce
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "application_type" : "web",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "sector_identifier_uri" : "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "client_name" : "oxAuth test app",
  "response_types" : [ "code", "id_token" ]
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1719
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:12:03 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=b110d5c0-354c-4e66-a7ae-c3e60b642e63",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "8aa88f52-f058-4ab0-aa85-7661bf58b038",
    "client_id": "b110d5c0-354c-4e66-a7ae-c3e60b642e63",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "work_phone profile clientinfo oxd user_name email super_gluu_ro_session test openid uma_protection permission address phone org_name",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "1cf1d6dc-f027-42dd-9ac8-f7209a962bd1",
    "client_id_issued_at": 1575529923,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": [
        "refresh_token",
        "authorization_code",
        "implicit"
    ],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616323,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": [
        "code",
        "token",
        "id_token"
    ]
}

authenticateResourceOwnerAndGrantAccess: Cleaning cookies
authenticateResourceOwnerAndGrantAccess: authorizationRequestUrl:https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=code+id_token&client_id=b110d5c0-354c-4e66-a7ae-c3e60b642e63&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=f64417ca-253c-41e7-85b4-39c00f173546&nonce=4d8785f9-f1f0-42ff-a312-e72f2cbb74dc
authenticateResourceOwnerAndGrantAccess: sessionState:02949c931a1a2b38ee34c3ff24c2a829ddd66a6044b0b8eec858c06ca87d367b.1de97a5b-0c1c-4da6-8c30-183edbd8d670
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=code+id_token&client_id=b110d5c0-354c-4e66-a7ae-c3e60b642e63&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=f64417ca-253c-41e7-85b4-39c00f173546&nonce=4d8785f9-f1f0-42ff-a312-e72f2cbb74dc

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm#code=5c153c19-2ca7-4089-a60f-2bb5f3252c6b&scope=address+openid+profile+email&id_token=eyJraWQiOiI5MjA3MzdmZC1mYWQ3LTQxNzAtOWU0OS00Y2Q2Yjc1N2EyNTRfc2lnX3JzMjU2IiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJhdWQiOiJiMTEwZDVjMC0zNTRjLTRlNjYtYTdhZS1jM2U2MGI2NDJlNjMiLCJjX2hhc2giOiJEdjN2T2E3VmwxZVBNZ1JLaDJ2bm5BIiwic3ViIjoiYUhIcUlIcFJTOHNMUXRDR1EyQXRJWUxVY09WVTB3cVBsOFl0NFN5RE1rOCIsInNfaGFzaCI6Ik9JbnpNYXV4VXZoanh5MXZBMFE4UmciLCJhdXRoX3RpbWUiOjE1NzU1Mjk5MjQsImlzcyI6Imh0dHBzOi8vamVua2lucy1jYi5nbHV1Lm9yZyIsImV4cCI6MTU3NTUzMzUyNywiaWF0IjoxNTc1NTI5OTI3LCJub25jZSI6IjRkODc4NWY5LWYxZjAtNDJmZi1hMzEyLWU3MmYyY2JiNzRkYyIsIm94T3BlbklEQ29ubmVjdFZlcnNpb24iOiJvcGVuaWRjb25uZWN0LTEuMCJ9.dx1nzorsA9g71UBTNUpzSbqIj8itqHAM1lU-W-4FDjdBh4GV4hKth_lRJ6I1DLCHAc_vm_1lbr5-mAh87ZQhklWwie3Y305RztZUewxQ13o4Lt7sFIX9kuw9sIwDurhHXRS50mpJHBvtBDEIrPXl3AU_XnEdp9qDv_nAzm7sc49WYL_n7NpKXH7Zw6KbYWSYrPdDqTSrVzxVOFCmhtwvBe7KosamY3aG3StiF11ISuYhZS3sgvCgOndawI3b619js3vbdQJBvrJNrcUYAMbDoevkKTw8kRqTt2FcRgywf9qzcXSr_pEuPvk2cCE6dpkGIU1_8wpkl1nJhrgvHEkP5g&session_id=d77f17ad-6b22-4059-933a-3cc8cba4ba24&state=f64417ca-253c-41e7-85b4-39c00f173546&session_state=02949c931a1a2b38ee34c3ff24c2a829ddd66a6044b0b8eec858c06ca87d367b.1de97a5b-0c1c-4da6-8c30-183edbd8d670

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/token HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Host: jenkins-cb.gluu.org
Authorization: Basic YjExMGQ1YzAtMzU0Yy00ZTY2LWE3YWUtYzNlNjBiNjQyZTYzOjFjZjFkNmRjLWYwMjctNDJkZC05YWM4LWY3MjA5YTk2MmJkMQ==

grant_type=authorization_code&code=5c153c19-2ca7-4089-a60f-2bb5f3252c6b&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1041
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:12:07 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{"access_token":"ac1b22f2-41b2-4255-a201-1b3be2506e28","refresh_token":"6403a7db-f9f4-4457-af6a-43834a94da04","id_token":"eyJraWQiOiI5MjA3MzdmZC1mYWQ3LTQxNzAtOWU0OS00Y2Q2Yjc1N2EyNTRfc2lnX3JzMjU2IiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJhdF9oYXNoIjoieHJLYTRJbDk2TzNSSm1TRlRmYzM3dyIsImF1ZCI6ImIxMTBkNWMwLTM1NGMtNGU2Ni1hN2FlLWMzZTYwYjY0MmU2MyIsInN1YiI6ImFISHFJSHBSUzhzTFF0Q0dRMkF0SVlMVWNPVlUwd3FQbDhZdDRTeURNazgiLCJhdXRoX3RpbWUiOjE1NzU1Mjk5MjQsImlzcyI6Imh0dHBzOi8vamVua2lucy1jYi5nbHV1Lm9yZyIsImV4cCI6MTU3NTUzMzUyNywiaWF0IjoxNTc1NTI5OTI3LCJub25jZSI6IjRkODc4NWY5LWYxZjAtNDJmZi1hMzEyLWU3MmYyY2JiNzRkYyIsIm94T3BlbklEQ29ubmVjdFZlcnNpb24iOiJvcGVuaWRjb25uZWN0LTEuMCJ9.WGywSuKSNj5lU_WVFjuS4VNBzTNUixXnq9XxPoceaImKKOdnETOx_C0DYSY4n9pxCqS4bU0QoG3JFuJ0I6BSaKyl5_3oxnPis-qaSVyhE6tc5O2CVji2grM0mEvBJ77GW2tu70mxeLifCQ91i41TNEVASgfxYWf5XtGm4D1ycmfQupXa-KSHE-dRT1_0aFfUrr1crBDDsy31uC0fO5tG2qGMvkx-X2W3PFi2PRzY5uwfXPSBImKzL4W4C0MIeAX6baxN5GewVr7CLWdRPbWjSeMhzjHq9TzYCgOy21nU1VtPhMPMyQP6stq3zV6XV7aQgR8Cz75qupvnINutRE3mUQ","token_type":"bearer","expires_in":299}

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/token HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Host: jenkins-cb.gluu.org
Authorization: Basic YjExMGQ1YzAtMzU0Yy00ZTY2LWE3YWUtYzNlNjBiNjQyZTYzOjFjZjFkNmRjLWYwMjctNDJkZC05YWM4LWY3MjA5YTk2MmJkMQ==

grant_type=refresh_token&scope=address+openid+profile+email&refresh_token=6403a7db-f9f4-4457-af6a-43834a94da04

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 188
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:12:07 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{"access_token":"91f44294-8127-42b3-bca9-0c8fc93d22c7","refresh_token":"06a1b31c-fcfb-4291-9a5f-82377a79b410","scope":"address openid profile email","token_type":"bearer","expires_in":299}

#######################################################
TEST: authorizationCodeWithNotAllowedScopeFlow
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "subject_type" : "pairwise",
  "application_type" : "web",
  "scope" : "openid profile address email user_name",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "sector_identifier_uri" : "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "client_name" : "oxAuth test app",
  "response_types" : [ "code", "id_token" ]
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1625
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:12:07 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=37866640-dedd-4eb1-807c-36e0382b2d14",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "af7d286a-caa3-4951-b729-a1c54d317c31",
    "client_id": "37866640-dedd-4eb1-807c-36e0382b2d14",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "address profile email user_name openid",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "dba9f5e2-d9ef-49f3-8b61-b7f7972f303f",
    "client_id_issued_at": 1575529927,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": [
        "refresh_token",
        "authorization_code",
        "implicit"
    ],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616327,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": [
        "code",
        "token",
        "id_token"
    ]
}

authenticateResourceOwnerAndGrantAccess: Cleaning cookies
authenticateResourceOwnerAndGrantAccess: authorizationRequestUrl:https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=code+id_token&client_id=37866640-dedd-4eb1-807c-36e0382b2d14&scope=openid+profile+address+email+user_name+mobile_phone&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=e6f27c19-2bdd-47a2-bb59-98a2aeaa89c3&nonce=f8273d97-32a7-4068-9c24-da13d11e61ed
authenticateResourceOwnerAndGrantAccess: sessionState:c1cff0a0e26d1788d87bb49efd49cf43c35cd7c014bc1555d4420e7ddd003d04.845bfd6c-c320-4b25-9d44-6e851f0bb479
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=code+id_token&client_id=37866640-dedd-4eb1-807c-36e0382b2d14&scope=openid+profile+address+email+user_name+mobile_phone&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=e6f27c19-2bdd-47a2-bb59-98a2aeaa89c3&nonce=f8273d97-32a7-4068-9c24-da13d11e61ed

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm#code=8bd78939-5300-4b4c-8039-b2ad29f00e42&scope=address+openid+user_name+profile+email&id_token=eyJraWQiOiI5MjA3MzdmZC1mYWQ3LTQxNzAtOWU0OS00Y2Q2Yjc1N2EyNTRfc2lnX3JzMjU2IiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJhdWQiOiIzNzg2NjY0MC1kZWRkLTRlYjEtODA3Yy0zNmUwMzgyYjJkMTQiLCJjX2hhc2giOiJ5U1h3QlhfVmFqaDd3M244dFdEYm93Iiwic3ViIjoiYUhIcUlIcFJTOHNMUXRDR1EyQXRJWUxVY09WVTB3cVBsOFl0NFN5RE1rOCIsInNfaGFzaCI6IjZSRk01aTIwcHpCWFFNSTJaT1pqNXciLCJhdXRoX3RpbWUiOjE1NzU1Mjk5MjgsImlzcyI6Imh0dHBzOi8vamVua2lucy1jYi5nbHV1Lm9yZyIsImV4cCI6MTU3NTUzMzUzMCwiaWF0IjoxNTc1NTI5OTMwLCJub25jZSI6ImY4MjczZDk3LTMyYTctNDA2OC05YzI0LWRhMTNkMTFlNjFlZCIsIm94T3BlbklEQ29ubmVjdFZlcnNpb24iOiJvcGVuaWRjb25uZWN0LTEuMCJ9.C7-c5cJGga7NagsVl1ygohap70T1qylOMS8QQsMIIceG_bHTFHGh87u_m5kKfOA09J2JS67XweR-PAMlS0GaW4QLu9EiPVj0mG2dVitqWjerrbgHAl_Fcw0SoUuq_2KhFue3_3_acgdt7WdORRjh5CNYRXNbhhwCkgdXwSm-PFYqQhq1vH0edqsA0KgdDGlQrf_zUQtXISWcbR69E1gnb61l-GlbLuND3SIeilLZyZJTUU-tkBblcnsBTnSNap4YknR1oo3iwG27g0yRKBJ72BA1sN2vqX1-DR7V5R2PdB8S-cP1qqDrzfhhM-MK-pL_vDl5nWc_NU3kKmdTIg0ukA&session_id=6de81374-1ea5-4b71-8576-e11708367037&state=e6f27c19-2bdd-47a2-bb59-98a2aeaa89c3&session_state=c1cff0a0e26d1788d87bb49efd49cf43c35cd7c014bc1555d4420e7ddd003d04.845bfd6c-c320-4b25-9d44-6e851f0bb479

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/token HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Host: jenkins-cb.gluu.org
Authorization: Basic Mzc4NjY2NDAtZGVkZC00ZWIxLTgwN2MtMzZlMDM4MmIyZDE0OmRiYTlmNWUyLWQ5ZWYtNDlmMy04YjYxLWI3Zjc5NzJmMzAzZg==

grant_type=authorization_code&code=8bd78939-5300-4b4c-8039-b2ad29f00e42&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1041
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:12:11 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{"access_token":"e89dcef2-be07-4b1c-9fdc-38edb2044172","refresh_token":"3af8231e-e856-43eb-a1be-4b72874dab9d","id_token":"eyJraWQiOiI5MjA3MzdmZC1mYWQ3LTQxNzAtOWU0OS00Y2Q2Yjc1N2EyNTRfc2lnX3JzMjU2IiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJhdF9oYXNoIjoibEN2QXo3YnB5N2M2ckZoQmJkVXA3ZyIsImF1ZCI6IjM3ODY2NjQwLWRlZGQtNGViMS04MDdjLTM2ZTAzODJiMmQxNCIsInN1YiI6ImFISHFJSHBSUzhzTFF0Q0dRMkF0SVlMVWNPVlUwd3FQbDhZdDRTeURNazgiLCJhdXRoX3RpbWUiOjE1NzU1Mjk5MjgsImlzcyI6Imh0dHBzOi8vamVua2lucy1jYi5nbHV1Lm9yZyIsImV4cCI6MTU3NTUzMzUzMSwiaWF0IjoxNTc1NTI5OTMxLCJub25jZSI6ImY4MjczZDk3LTMyYTctNDA2OC05YzI0LWRhMTNkMTFlNjFlZCIsIm94T3BlbklEQ29ubmVjdFZlcnNpb24iOiJvcGVuaWRjb25uZWN0LTEuMCJ9.R1N1ItJ5uU-eCBsbNsrn75hVQvZSkaaU_WJcNA5zYT6lW99f-of7xAtCvVNlV76H5TDB-XigwOgbbHP0aMin8g_0DTmjQQM_ukTaqqVC7P_5U4pEKL6wyruPSKyQPK9gtZGop_1ATgwXEEux78j8jmZG1M-28SQT44XcwWM3xEJl3D37wb11N2pzZhj-9NL5sfmcBcimz5ymEnOD5Igzygpmf35s1nWlQj4MP5L-YC-7JR2ChwHbPV_rz5IuIMMjAuNVUgjfigR4QD4glo8XokDB157RmcNMdQ_zBdsgpylLx8t0YpKhNGXUogyovLpTwqXgsl-59HFE0BJKiep8ew","token_type":"bearer","expires_in":299}

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
GET /oxauth/restv1/userinfo HTTP/1.1
Host: jenkins-cb.gluu.org
Authorization: Bearer e89dcef2-be07-4b1c-9fdc-38edb2044172

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store, private
Connection: Keep-Alive
Content-Length: 638
Content-Type: application/json;charset=utf-8
Date: Thu, 05 Dec 2019 07:12:11 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{"sub":"aHHqIHpRS8sLQtCGQ2AtIYLUcOVU0wqPl8Yt4SyDMk8","website":"http://www.gluu.org","zoneinfo":"America/Chicago","address":{"street_address":"621 East 6th Street","country":"US","locality":"Austin","region":"Texas"},"birthdate":"1983-01-06T01:05:14.000","email_verified":true,"gender":"Male","user_name":"test_user","profile":"http://www.mywebsite.com/profile","preferred_username":"user","given_name":"Test","middle_name":"User","locale":"en-US","picture":"http://www.gluu.org/wp-content/uploads/2012/04/mike3.png","updated_at":1486994332000,"name":"oxAuth Test User","nickname":"user","family_name":"User","email":"test_user@test.org"}

#######################################################
TEST: revokeTokens
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "application_type" : "web",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "sector_identifier_uri" : "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "client_name" : "oxAuth test app",
  "response_types" : [ "code", "id_token" ]
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1719
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:12:11 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=a3d9b18f-9884-49d8-9fef-d990a0edf8e0",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "4de62b6f-a712-4a30-a84d-0140376cca42",
    "client_id": "a3d9b18f-9884-49d8-9fef-d990a0edf8e0",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "permission user_name phone org_name email oxd work_phone uma_protection clientinfo super_gluu_ro_session address test profile openid",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "a2673696-8fd3-4104-b02d-08af0d4c01c5",
    "client_id_issued_at": 1575529931,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": [
        "refresh_token",
        "authorization_code",
        "implicit"
    ],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616331,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": [
        "code",
        "token",
        "id_token"
    ]
}

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
GET /oxauth/restv1/register?{ } HTTP/1.1
Host: jenkins-cb.gluu.org
Authorization: Bearer 4de62b6f-a712-4a30-a84d-0140376cca42

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1719
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:12:11 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=a3d9b18f-9884-49d8-9fef-d990a0edf8e0",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "4de62b6f-a712-4a30-a84d-0140376cca42",
    "client_id": "a3d9b18f-9884-49d8-9fef-d990a0edf8e0",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "permission user_name phone org_name email oxd work_phone uma_protection clientinfo super_gluu_ro_session address test profile openid",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "a2673696-8fd3-4104-b02d-08af0d4c01c5",
    "client_id_issued_at": 1575529931,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": [
        "refresh_token",
        "authorization_code",
        "implicit"
    ],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616331,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": [
        "code",
        "token",
        "id_token"
    ]
}

authenticateResourceOwnerAndGrantAccess: Cleaning cookies
authenticateResourceOwnerAndGrantAccess: authorizationRequestUrl:https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=code+id_token&client_id=a3d9b18f-9884-49d8-9fef-d990a0edf8e0&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=becc7669-2b2d-43dd-aadd-33bc1d05c6e3&nonce=adc19fde-4a73-4d89-b2f1-399757ee9734
authenticateResourceOwnerAndGrantAccess: sessionState:2d3359c875e9e30af0793e9642f965bc50995b07ca4933175eb8f301de41e549.c20e6b0a-5001-4f74-8011-f30a9cb1fcf3
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=code+id_token&client_id=a3d9b18f-9884-49d8-9fef-d990a0edf8e0&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=becc7669-2b2d-43dd-aadd-33bc1d05c6e3&nonce=adc19fde-4a73-4d89-b2f1-399757ee9734

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm#code=f43fd090-af09-47b2-af3d-6274ef62de09&scope=address+openid+profile+email&id_token=eyJraWQiOiI5MjA3MzdmZC1mYWQ3LTQxNzAtOWU0OS00Y2Q2Yjc1N2EyNTRfc2lnX3JzMjU2IiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJhdWQiOiJhM2Q5YjE4Zi05ODg0LTQ5ZDgtOWZlZi1kOTkwYTBlZGY4ZTAiLCJjX2hhc2giOiI1VHZEN3oyQUhRQk1UR2w5RGZTRXNnIiwic3ViIjoiYUhIcUlIcFJTOHNMUXRDR1EyQXRJWUxVY09WVTB3cVBsOFl0NFN5RE1rOCIsInNfaGFzaCI6IkRRX3ZaMVlLVjJ1eUVMSU9Nc3JoNHciLCJhdXRoX3RpbWUiOjE1NzU1Mjk5MzIsImlzcyI6Imh0dHBzOi8vamVua2lucy1jYi5nbHV1Lm9yZyIsImV4cCI6MTU3NTUzMzUzNCwiaWF0IjoxNTc1NTI5OTM0LCJub25jZSI6ImFkYzE5ZmRlLTRhNzMtNGQ4OS1iMmYxLTM5OTc1N2VlOTczNCIsIm94T3BlbklEQ29ubmVjdFZlcnNpb24iOiJvcGVuaWRjb25uZWN0LTEuMCJ9.BYKOmG7XWAuc2KHj1GDLdP2cJC687Fbjqku-zCEMgmSGWxOxCIs5O3VuLIoGr4dmUx9gYpeSCOeC0dP93RdF9HI-244Lk3TA5GmXesuP6j8sJGJfdOJMXFsgIU8tiYIvlAJ3Nwaiz_-w4AAmZWj_jLYU8SRMq9AwSj-ctr1Dqy5ick2T_zhqHkQG7ifPU9ZvSC9vJFSO4OtIy_EiUVzBTisv3U9K45pD_L9RtSL2_Kdi0oTsSr0o7bwxbn-v6SaHeJbpUUiDTvsTqOxzIyebP36AUY4KhjMZQSQDFCpQ3Tgo1JDBS73OKVKBSg_qy7BeTvSgsWwtytlgoS0zczpZnA&session_id=9c664ff5-6400-4029-bb88-090a1dd38595&state=becc7669-2b2d-43dd-aadd-33bc1d05c6e3&session_state=2d3359c875e9e30af0793e9642f965bc50995b07ca4933175eb8f301de41e549.c20e6b0a-5001-4f74-8011-f30a9cb1fcf3

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/token HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Host: jenkins-cb.gluu.org
Authorization: Basic YTNkOWIxOGYtOTg4NC00OWQ4LTlmZWYtZDk5MGEwZWRmOGUwOmEyNjczNjk2LThmZDMtNDEwNC1iMDJkLTA4YWYwZDRjMDFjNQ==

grant_type=authorization_code&code=f43fd090-af09-47b2-af3d-6274ef62de09&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1041
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:12:14 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{"access_token":"1a911425-d963-46d8-a991-876cf8018747","refresh_token":"64450ff6-ae7b-45ed-bb49-18b237c7b859","id_token":"eyJraWQiOiI5MjA3MzdmZC1mYWQ3LTQxNzAtOWU0OS00Y2Q2Yjc1N2EyNTRfc2lnX3JzMjU2IiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJhdF9oYXNoIjoiSzczU2xmckpBVjlxM2p6VkdEdVpidyIsImF1ZCI6ImEzZDliMThmLTk4ODQtNDlkOC05ZmVmLWQ5OTBhMGVkZjhlMCIsInN1YiI6ImFISHFJSHBSUzhzTFF0Q0dRMkF0SVlMVWNPVlUwd3FQbDhZdDRTeURNazgiLCJhdXRoX3RpbWUiOjE1NzU1Mjk5MzIsImlzcyI6Imh0dHBzOi8vamVua2lucy1jYi5nbHV1Lm9yZyIsImV4cCI6MTU3NTUzMzUzNCwiaWF0IjoxNTc1NTI5OTM0LCJub25jZSI6ImFkYzE5ZmRlLTRhNzMtNGQ4OS1iMmYxLTM5OTc1N2VlOTczNCIsIm94T3BlbklEQ29ubmVjdFZlcnNpb24iOiJvcGVuaWRjb25uZWN0LTEuMCJ9.UTI1bnZkK5DG5L0XhYnnWXmKXDVJWjb9HNYr_NA6ts0zZplrXM-sHtuErfS3EWDeSzGY2HEkuX7QIpimIicaSjxCfY8buPrmOik0MnqUoeTUfikRx_KvLCusKwmwPUta0g2pKQ1p8AGtl5AWnLzb-yivLnnyS-yXbBE6TDHrAL03OlCRsl6C2k7evSL4lM_5_-1faUxKZiknHd3AvjU96UhXYr2K02NBD4Fg-6EQepyykmBfEjh7E1xRtzrzX9qADRXrQSUpcrDOM4XcHqwzrAxrXHW9fQ2mM9fIsFSW33cJi27V8s0K-N1UkjN2WxDLUvFstvKPeWsG48lZJMANEQ","token_type":"bearer","expires_in":299}

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/token HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Host: jenkins-cb.gluu.org
Authorization: Basic YTNkOWIxOGYtOTg4NC00OWQ4LTlmZWYtZDk5MGEwZWRmOGUwOmEyNjczNjk2LThmZDMtNDEwNC1iMDJkLTA4YWYwZDRjMDFjNQ==

grant_type=authorization_code&code=f43fd090-af09-47b2-af3d-6274ef62de09&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 400
Cache-Control: no-store
Connection: close
Content-Length: 268
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:12:14 GMT
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{"reason":"Unable to find grant object for given code.","error_description":"The provided authorization grant is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client.","error":"invalid_grant"}

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/token HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Host: jenkins-cb.gluu.org
Authorization: Basic YTNkOWIxOGYtOTg4NC00OWQ4LTlmZWYtZDk5MGEwZWRmOGUwOmEyNjczNjk2LThmZDMtNDEwNC1iMDJkLTA4YWYwZDRjMDFjNQ==

grant_type=refresh_token&scope=address+openid+profile+email&refresh_token=64450ff6-ae7b-45ed-bb49-18b237c7b859

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 401
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 270
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:12:14 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{"reason":"Unable to find grant object by refresh token.","error_description":"The provided authorization grant is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client.","error":"invalid_grant"}

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
GET /oxauth/restv1/userinfo HTTP/1.1
Host: jenkins-cb.gluu.org
Authorization: Bearer 1a911425-d963-46d8-a991-876cf8018747

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 401
Connection: Keep-Alive
Content-Length: 203
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:12:15 GMT
Keep-Alive: timeout=5, max=100
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{"error_description":"The access token provided is expired, revoked, malformed, or invalid for other reasons. Try to request a new access token and retry the protected resource.","error":"invalid_token"}

#######################################################
TEST: OpenID Connect Discovery
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
GET /.well-known/webfinger?resource=acct%3Atest_user%40jenkins-cb.gluu.org&rel=http%3A%2F%2Fopenid.net%2Fspecs%2Fconnect%2F1.0%2Fissuer HTTP/1.1
Host: jenkins-cb.gluu.org

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Connection: Keep-Alive
Content-Length: 187
Content-Type: application/jrd+json;charset=iso-8859-1
Date: Thu, 05 Dec 2019 07:12:15 GMT
Keep-Alive: timeout=5, max=100
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "subject": "acct:test_user@jenkins-cb.gluu.org",
    "links": [{
        "rel": "http://openid.net/specs/connect/1.0/issuer",
        "href": "https://jenkins-cb.gluu.org"
    }]
}


OpenID Connect Configuration
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
GET /.well-known/openid-configuration HTTP/1.1
Host: jenkins-cb.gluu.org

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Connection: Keep-Alive
Content-Length: 5934
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:12:15 GMT
Keep-Alive: timeout=5, max=100
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
  "request_parameter_supported" : true,
  "token_revocation_endpoint" : "https://jenkins-cb.gluu.org/oxauth/restv1/revoke",
  "introspection_endpoint" : "https://jenkins-cb.gluu.org/oxauth/restv1/introspection",
  "claims_parameter_supported" : true,
  "check_session_iframe" : "https://jenkins-cb.gluu.org/oxauth/opiframe.htm",
  "scopes_supported" : [ "https://jenkins-cb.gluu.org/oxauth/restv1/uma/scopes/scim_access", "address", "test", "user_name", "clientinfo", "openid", "uma_protection", "profile", "https://jenkins-cb.gluu.org/oxauth/restv1/uma/scopes/passport_access", "work_phone", "http://photoz.example.com/dev/scopes/view", "permission", "http://photoz.example.com/dev/scopes/all", "modify", "oxtrust-api-read", "oxtrust-api-write", "phone", "mobile_phone", "oxd", "org_name", "super_gluu_ro_session", "email" ],
  "issuer" : "https://jenkins-cb.gluu.org",
  "acr_values_supported" : [ "simple_password_auth", "basic_lock", "basic" ],
  "userinfo_encryption_enc_values_supported" : [ "RSA1_5", "RSA-OAEP", "A128KW", "A256KW" ],
  "id_token_encryption_enc_values_supported" : [ "A128CBC+HS256", "A256CBC+HS512", "A128GCM", "A256GCM" ],
  "authorization_endpoint" : "https://jenkins-cb.gluu.org/oxauth/restv1/authorize",
  "service_documentation" : "http://gluu.org/docs",
  "request_object_encryption_enc_values_supported" : [ "A128CBC+HS256", "A256CBC+HS512", "A128GCM", "A256GCM" ],
  "display_values_supported" : [ "page", "popup" ],
  "id_generation_endpoint" : "https://jenkins-cb.gluu.org/oxauth/restv1/id",
  "userinfo_signing_alg_values_supported" : [ "HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "ES256", "ES384", "ES512" ],
  "claims_supported" : [ "oxAuthRedirectURI", "street_address", "country", "zoneinfo", "birthdate", "gender", "formatted", "user_name", "oxAuthIdTokenSignedResponseAlg", "work_phone", "oxAuthScope", "phone_mobile_number", "preferred_username", "inum", "locale", "oxAuthAppType", "updated_at", "nickname", "org_name", "member_of", "email", "website", "email_verified", "profile", "locality", "phone_number_verified", "given_name", "middle_name", "picture", "name", "phone_number", "postal_code", "region", "family_name" ],
  "scope_to_claims_mapping" : [ {
    "mobile_phone" : [ "phone_mobile_number" ]
  }, {
    "https://jenkins-cb.gluu.org/oxauth/restv1/uma/scopes/passport_access" : [ ]
  }, {
    "oxtrust-api-read" : [ ]
  }, {
    "work_phone" : [ "work_phone" ]
  }, {
    "org_name" : [ "org_name" ]
  }, {
    "uma_protection" : [ ]
  }, {
    "https://jenkins-cb.gluu.org/oxauth/restv1/uma/scopes/scim_access" : [ ]
  }, {
    "http://photoz.example.com/dev/scopes/all" : [ ]
  }, {
    "address" : [ "formatted", "postal_code", "street_address", "locality", "country", "region" ]
  }, {
    "user_name" : [ "user_name" ]
  }, {
    "http://photoz.example.com/dev/scopes/view" : [ ]
  }, {
    "test" : [ "member_of" ]
  }, {
    "email" : [ "email_verified", "email" ]
  }, {
    "permission" : [ ]
  }, {
    "oxtrust-api-write" : [ ]
  }, {
    "clientinfo" : [ "name", "inum", "oxAuthAppType", "oxAuthIdTokenSignedResponseAlg", "oxAuthRedirectURI", "oxAuthScope" ]
  }, {
    "openid" : [ ]
  }, {
    "modify" : [ ]
  }, {
    "profile" : [ "name", "family_name", "given_name", "middle_name", "nickname", "preferred_username", "profile", "picture", "website", "gender", "birthdate", "zoneinfo", "locale", "updated_at" ]
  }, {
    "oxd" : [ ]
  }, {
    "phone" : [ "phone_number_verified", "phone_number" ]
  }, {
    "super_gluu_ro_session" : [ ]
  } ],
  "claim_types_supported" : [ "normal" ],
  "op_policy_uri" : "http://ox.gluu.org/doku.php?id=oxauth:policy",
  "token_endpoint_auth_methods_supported" : [ "client_secret_basic", "client_secret_post", "client_secret_jwt", "private_key_jwt" ],
  "tls_client_certificate_bound_access_tokens" : true,
  "response_modes_supported" : [ "fragment", "query", "form_post" ],
  "token_endpoint" : "https://jenkins-cb.gluu.org/oxauth/restv1/token",
  "response_types_supported" : [ "code", "code token id_token", "token", "code token", "id_token", "code id_token", "token id_token" ],
  "request_uri_parameter_supported" : true,
  "userinfo_encryption_alg_values_supported" : [ "RSA1_5", "RSA-OAEP", "A128KW", "A256KW" ],
  "grant_types_supported" : [ "client_credentials", "refresh_token", "authorization_code", "password", "urn:ietf:params:oauth:grant-type:uma-ticket", "implicit" ],
  "end_session_endpoint" : "https://jenkins-cb.gluu.org/oxauth/restv1/end_session",
  "ui_locales_supported" : [ "en", "es" ],
  "userinfo_endpoint" : "https://jenkins-cb.gluu.org/oxauth/restv1/userinfo",
  "token_endpoint_auth_signing_alg_values_supported" : [ "HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "ES256", "ES384", "ES512" ],
  "op_tos_uri" : "http://ox.gluu.org/doku.php?id=oxauth:tos",
  "frontchannel_logout_supported" : true,
  "auth_level_mapping" : {
    "-1" : [ "simple_password_auth" ],
    "20" : [ "basic_lock" ],
    "10" : [ "basic" ]
  },
  "require_request_uri_registration" : false,
  "id_token_encryption_alg_values_supported" : [ "RSA1_5", "RSA-OAEP", "A128KW", "A256KW" ],
  "jwks_uri" : "https://jenkins-cb.gluu.org/oxauth/restv1/jwks",
  "frontchannel_logout_session_supported" : true,
  "subject_types_supported" : [ "public", "pairwise" ],
  "id_token_signing_alg_values_supported" : [ "none", "HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "ES256", "ES384", "ES512" ],
  "registration_endpoint" : "https://jenkins-cb.gluu.org/oxauth/restv1/register",
  "claims_locales_supported" : [ "en" ],
  "clientinfo_endpoint" : "https://jenkins-cb.gluu.org/oxauth/restv1/clientinfo",
  "request_object_signing_alg_values_supported" : [ "none", "HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "ES256", "ES384", "ES512" ],
  "request_object_encryption_alg_values_supported" : [ "RSA1_5", "RSA-OAEP", "A128KW", "A256KW" ],
  "id_token_token_binding_cnf_values_supported" : [ "tbh" ]
}


#######################################################
TEST: AuthorizationResponseCustomHeaderTest
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "oxAuthTrustedClient" : "true",
  "application_type" : "web",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "sector_identifier_uri" : "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "client_name" : "oxAuth test app",
  "response_types" : [ "code" ]
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1648
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:12:15 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=a990d50b-952d-4610-8690-1cd14b835bf1",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "35cfffb2-92f3-445a-8d9f-66bee23a0120",
    "client_id": "a990d50b-952d-4610-8690-1cd14b835bf1",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "clientinfo work_phone address test org_name uma_protection permission super_gluu_ro_session profile email user_name openid oxd phone",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "6830010e-37de-4072-9ad1-31983735ff74",
    "client_id_issued_at": 1575529935,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": [
        "refresh_token",
        "authorization_code"
    ],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616335,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": ["code"]
}

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/authorize HTTP/1.1
Host: jenkins-cb.gluu.org
Authorization: Basic dGVzdF91c2VyOnRlc3RfdXNlcl9wYXNzd29yZA==

response_type=code&client_id=a990d50b-952d-4610-8690-1cd14b835bf1&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=6f3f8abd-ab67-4dec-95bf-4356a4ecc60a&nonce=1cf4bfe0-4d05-4f84-b6b9-9fa0149aeaa1&prompt=none&custom_response_headers=%5B%7B%22CustomHeader1%22%3A%22custom_header_value_1%22%7D%2C%7B%22CustomHeader3%22%3A%22custom_header_value_3%22%7D%2C%7B%22CustomHeader2%22%3A%22custom_header_value_2%22%7D%5D

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302
Connection: Keep-Alive
Content-Length: 0
CustomHeader1: custom_header_value_1
CustomHeader2: custom_header_value_2
CustomHeader3: custom_header_value_3
Date: Thu, 05 Dec 2019 07:12:15 GMT
Keep-Alive: timeout=5, max=100
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm?code=d0c0a79e-d646-472d-8111-354e6b6809df&scope=address+openid+profile+email&session_id=3f2a2f9f-01b9-4639-807d-42faabade0e5&state=6f3f8abd-ab67-4dec-95bf-4356a4ecc60a&session_state=14d6abf89f22a86d9a6a6bb6ab3679a70e2ef0aa1ec63570a34a7e086b8ca7d5.229b7114-6fcd-4e36-a18b-dfb719efcf6d
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block



#######################################################
TEST: AuthorizationResponseCustomHeaderTest
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "oxAuthTrustedClient" : "true",
  "application_type" : "web",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "sector_identifier_uri" : "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "client_name" : "oxAuth test app",
  "response_types" : [ "token" ]
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1600
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:12:16 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=44539db0-7c0f-4d96-ac13-c1525c68389b",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "51553979-7c22-480c-a9e3-91b0f34235c9",
    "client_id": "44539db0-7c0f-4d96-ac13-c1525c68389b",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "work_phone profile super_gluu_ro_session address uma_protection phone permission clientinfo oxd user_name test openid org_name email",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "01bded22-b28b-4453-b70d-695171a7f2f5",
    "client_id_issued_at": 1575529936,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": ["implicit"],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616336,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": ["token"]
}

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/authorize HTTP/1.1
Host: jenkins-cb.gluu.org
Authorization: Basic dGVzdF91c2VyOnRlc3RfdXNlcl9wYXNzd29yZA==

response_type=token&client_id=44539db0-7c0f-4d96-ac13-c1525c68389b&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=5f0f357d-93bd-4323-846b-7afce7475511&nonce=424566ce-d202-47e4-86d1-5d08b8831811&prompt=none&custom_response_headers=%5B%7B%22CustomHeader1%22%3A%22custom_header_value_1%22%7D%2C%7B%22CustomHeader3%22%3A%22custom_header_value_3%22%7D%2C%7B%22CustomHeader2%22%3A%22custom_header_value_2%22%7D%5D

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302
Connection: Keep-Alive
Content-Length: 0
CustomHeader1: custom_header_value_1
CustomHeader2: custom_header_value_2
CustomHeader3: custom_header_value_3
Date: Thu, 05 Dec 2019 07:12:16 GMT
Keep-Alive: timeout=5, max=100
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm#access_token=96464924-2c02-4c7f-84b9-257307422b38&scope=address+openid+profile+email&session_id=e17d30bd-91c1-42b2-bbe7-ed557d1448e6&state=5f0f357d-93bd-4323-846b-7afce7475511&token_type=bearer&session_state=2b855310c3a2748ed22896918005aea31c89e749ce239a900ea05f035fffa127.c6f29d79-6a42-4e07-a3ca-2a7b4d34c71c&expires_in=299
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block



#######################################################
TEST: AuthorizationResponseCustomHeaderTest
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "oxAuthTrustedClient" : "true",
  "application_type" : "web",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "sector_identifier_uri" : "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "client_name" : "oxAuth test app",
  "response_types" : [ "id_token" ]
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1634
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:12:17 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=4a3e2e6b-c6f4-4632-b036-0d2376f2abb0",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "04b44686-f403-4ce6-9fce-66db9dbbe258",
    "client_id": "4a3e2e6b-c6f4-4632-b036-0d2376f2abb0",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "phone uma_protection clientinfo org_name super_gluu_ro_session permission address oxd user_name email work_phone test openid profile",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "54bf6666-5bf9-49ee-ad22-041aff77c682",
    "client_id_issued_at": 1575529937,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": ["implicit"],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616337,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": [
        "token",
        "id_token"
    ]
}

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/authorize HTTP/1.1
Host: jenkins-cb.gluu.org
Authorization: Basic dGVzdF91c2VyOnRlc3RfdXNlcl9wYXNzd29yZA==

response_type=id_token&client_id=4a3e2e6b-c6f4-4632-b036-0d2376f2abb0&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=dd7a9d3a-c031-40c9-b96e-8e3634cf87b9&nonce=c61c0404-d1c0-4399-bded-971bf4e8dd71&prompt=none&custom_response_headers=%5B%7B%22CustomHeader1%22%3A%22custom_header_value_1%22%7D%2C%7B%22CustomHeader3%22%3A%22custom_header_value_3%22%7D%2C%7B%22CustomHeader2%22%3A%22custom_header_value_2%22%7D%5D

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302
Connection: Keep-Alive
Content-Length: 0
CustomHeader1: custom_header_value_1
CustomHeader2: custom_header_value_2
CustomHeader3: custom_header_value_3
Date: Thu, 05 Dec 2019 07:12:17 GMT
Keep-Alive: timeout=5, max=100
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm#scope=address+openid+profile+email&id_token=eyJraWQiOiI5MjA3MzdmZC1mYWQ3LTQxNzAtOWU0OS00Y2Q2Yjc1N2EyNTRfc2lnX3JzMjU2IiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJhdWQiOiI0YTNlMmU2Yi1jNmY0LTQ2MzItYjAzNi0wZDIzNzZmMmFiYjAiLCJzdWIiOiJhSEhxSUhwUlM4c0xRdENHUTJBdElZTFVjT1ZVMHdxUGw4WXQ0U3lETWs4Iiwic19oYXNoIjoiM1UzdjF3ejZJRU9fYzYxdkY1RHViUSIsImF1dGhfdGltZSI6MTU3NTUyOTkzNywiaXNzIjoiaHR0cHM6Ly9qZW5raW5zLWNiLmdsdXUub3JnIiwiZXhwIjoxNTc1NTMzNTM4LCJpYXQiOjE1NzU1Mjk5MzgsIm5vbmNlIjoiYzYxYzA0MDQtZDFjMC00Mzk5LWJkZWQtOTcxYmY0ZThkZDcxIiwib3hPcGVuSURDb25uZWN0VmVyc2lvbiI6Im9wZW5pZGNvbm5lY3QtMS4wIn0.AfjkSj8ROYFsOYZxtLfPIO4w0JWTazc1jHp7lB57uiBz0yiBro25KGD-SyB3s_Qmojf8SPEAap3yjFQhVWyEJGO2dg5I3nPzRu_VAQpcfczvtueuzzkuH7J5r2b7iOsEnNwt9Fp7kvoJFsUWumNPo0k3JvP3-tquttUQ_wNtG-KeivamCjLI3-gR3axpvFVa5pMuNGur-DTXt1VWqIjmyCz5dytoGlo9nQ-705Q3cTpjrBE10KK90zGdazdleI_SADLa2mrJLaTyjy3XDgJAIPTfiOqCgWLmlZhTLKUYq2Jdvj2iFde00TszvSBjVD1865O_GXUHsLZHrRZA6ywMXg&session_id=e1088bd1-64d3-4a90-ab4c-80b3ce3f6d40&state=dd7a9d3a-c031-40c9-b96e-8e3634cf87b9&session_state=bf4133e60a5158f442fcdd5533b9aea1f675cc61031fe57e22fbf61dd814a2c4.40884804-efdc-42f0-8cfe-50b504599878
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block



#######################################################
TEST: AuthorizationResponseCustomHeaderTest
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "oxAuthTrustedClient" : "true",
  "application_type" : "web",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "sector_identifier_uri" : "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "client_name" : "oxAuth test app",
  "response_types" : [ "code", "token" ]
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1699
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:12:18 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=d83d9f52-3816-4e6b-bbf1-941ff3a5ec54",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "d93e9d8d-bad1-4381-9480-81bc61a6dfa8",
    "client_id": "d83d9f52-3816-4e6b-bbf1-941ff3a5ec54",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "address org_name super_gluu_ro_session user_name openid uma_protection clientinfo phone test oxd permission profile email work_phone",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "3bf73b39-89c3-4f97-bc1c-30cbb307f7b0",
    "client_id_issued_at": 1575529938,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": [
        "refresh_token",
        "authorization_code",
        "implicit"
    ],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616338,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": [
        "code",
        "token"
    ]
}

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/authorize HTTP/1.1
Host: jenkins-cb.gluu.org
Authorization: Basic dGVzdF91c2VyOnRlc3RfdXNlcl9wYXNzd29yZA==

response_type=code+token&client_id=d83d9f52-3816-4e6b-bbf1-941ff3a5ec54&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=93a843aa-7d09-4526-a96d-bafd27061929&nonce=b20103d0-84a0-45c4-96e0-5fd8e33bd583&prompt=none&custom_response_headers=%5B%7B%22CustomHeader1%22%3A%22custom_header_value_1%22%7D%2C%7B%22CustomHeader3%22%3A%22custom_header_value_3%22%7D%2C%7B%22CustomHeader2%22%3A%22custom_header_value_2%22%7D%5D

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302
Connection: Keep-Alive
Content-Length: 0
CustomHeader1: custom_header_value_1
CustomHeader2: custom_header_value_2
CustomHeader3: custom_header_value_3
Date: Thu, 05 Dec 2019 07:12:18 GMT
Keep-Alive: timeout=5, max=100
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm#access_token=49d15076-97c1-48ce-820b-c22f2b03a018&code=7a8b5426-28ce-4c5c-8672-84661995d576&scope=address+openid+profile+email&session_id=c427e0bd-5346-40da-bbd4-8d2840a00630&state=93a843aa-7d09-4526-a96d-bafd27061929&token_type=bearer&session_state=412166023daf3bf40d0bf34dddb4ea589aa53eebd27122cce1f9e5e6dd11cafa.4ddcfe8a-d492-4230-b0a4-e173428956d4&expires_in=299
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block



#######################################################
TEST: AuthorizationResponseCustomHeaderTest
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "oxAuthTrustedClient" : "true",
  "application_type" : "web",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "sector_identifier_uri" : "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "client_name" : "oxAuth test app",
  "response_types" : [ "code", "id_token" ]
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1719
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:12:20 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=a9dd1c7a-c4c1-49c0-9f21-23bc7dea218a",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "0c1b4d46-3ed2-427c-9789-d6ab6c9f6c87",
    "client_id": "a9dd1c7a-c4c1-49c0-9f21-23bc7dea218a",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "email address test work_phone profile oxd org_name openid user_name super_gluu_ro_session clientinfo phone uma_protection permission",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "73af3d45-c528-4a9b-b037-e0e12b5602be",
    "client_id_issued_at": 1575529940,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": [
        "refresh_token",
        "authorization_code",
        "implicit"
    ],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616340,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": [
        "code",
        "token",
        "id_token"
    ]
}

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/authorize HTTP/1.1
Host: jenkins-cb.gluu.org
Authorization: Basic dGVzdF91c2VyOnRlc3RfdXNlcl9wYXNzd29yZA==

response_type=code+id_token&client_id=a9dd1c7a-c4c1-49c0-9f21-23bc7dea218a&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=c6d9f975-8351-494c-b447-5dccc511c525&nonce=f9516ba5-1df2-41cd-9239-8414b9921342&prompt=none&custom_response_headers=%5B%7B%22CustomHeader1%22%3A%22custom_header_value_1%22%7D%2C%7B%22CustomHeader3%22%3A%22custom_header_value_3%22%7D%2C%7B%22CustomHeader2%22%3A%22custom_header_value_2%22%7D%5D

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302
Connection: Keep-Alive
Content-Length: 0
CustomHeader1: custom_header_value_1
CustomHeader2: custom_header_value_2
CustomHeader3: custom_header_value_3
Date: Thu, 05 Dec 2019 07:12:20 GMT
Keep-Alive: timeout=5, max=100
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm#code=7593534c-f6e5-4566-86b3-14b59d69deff&scope=address+openid+profile+email&id_token=eyJraWQiOiI5MjA3MzdmZC1mYWQ3LTQxNzAtOWU0OS00Y2Q2Yjc1N2EyNTRfc2lnX3JzMjU2IiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJhdWQiOiJhOWRkMWM3YS1jNGMxLTQ5YzAtOWYyMS0yM2JjN2RlYTIxOGEiLCJjX2hhc2giOiI0VV80LUJQTS0tVnhncVFIWm0wa0lnIiwic3ViIjoiYUhIcUlIcFJTOHNMUXRDR1EyQXRJWUxVY09WVTB3cVBsOFl0NFN5RE1rOCIsInNfaGFzaCI6Ikh1TVdmYXVsWG9kby1BYkpDZzVhZFEiLCJhdXRoX3RpbWUiOjE1NzU1Mjk5NDAsImlzcyI6Imh0dHBzOi8vamVua2lucy1jYi5nbHV1Lm9yZyIsImV4cCI6MTU3NTUzMzU0MSwiaWF0IjoxNTc1NTI5OTQxLCJub25jZSI6ImY5NTE2YmE1LTFkZjItNDFjZC05MjM5LTg0MTRiOTkyMTM0MiIsIm94T3BlbklEQ29ubmVjdFZlcnNpb24iOiJvcGVuaWRjb25uZWN0LTEuMCJ9.HogaY7-Au-RuBreuz6HcQT86qFlRCFbW6W34jDqAXXj-6j82zOn1h7qCvXua-fNL7NLuQaaq7WFRmebgeKHk5pgJBSClha77jf8oSHmak7sjAU1ke812CTNgyNS7IsW9cCxwxPWqLzqUWUHu2-8CoYchhsNCsSDhDM6zko0shMeHCEAq8U0EPUiDxK6OMKMZXwJdFmZMJJGYrBY3GXzyhPxuTcHjlW51oTaCcN9t4wZtlnF4VzefAdSnTfhrD48xtANnU1RE1m2s974akftF3uXOe9qS9mGyvypc3W1GXDzCvr3UrWTzmA3fJCUBLSbds6GxM8RoLrhvhLETYJ-rjw&session_id=90f4dcb3-3bb1-439a-bfc9-4e19f82efbbc&state=c6d9f975-8351-494c-b447-5dccc511c525&session_state=8489f9a9187b30d0e7e505c31416701ba0808b05670f69929866fda01d8ee26f.8d801909-8e0b-45fd-a47d-82171335ad85
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block



#######################################################
TEST: AuthorizationResponseCustomHeaderTest
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "oxAuthTrustedClient" : "true",
  "application_type" : "web",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "sector_identifier_uri" : "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "client_name" : "oxAuth test app",
  "response_types" : [ "token", "id_token" ]
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1634
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:12:21 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=10019f95-0c52-4bc6-864a-83dd8c59a267",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "a7c03382-bc69-4f78-9bad-eb5325436d66",
    "client_id": "10019f95-0c52-4bc6-864a-83dd8c59a267",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "permission user_name profile phone oxd uma_protection org_name address test super_gluu_ro_session work_phone openid clientinfo email",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "eb9439c8-0774-4f70-9419-912dea15177d",
    "client_id_issued_at": 1575529941,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": ["implicit"],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616341,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": [
        "token",
        "id_token"
    ]
}

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/authorize HTTP/1.1
Host: jenkins-cb.gluu.org
Authorization: Basic dGVzdF91c2VyOnRlc3RfdXNlcl9wYXNzd29yZA==

response_type=token+id_token&client_id=10019f95-0c52-4bc6-864a-83dd8c59a267&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=b09d434e-7ba9-43a7-b1b3-fd544ba4b64a&nonce=0ebff1ce-b3be-4818-8486-2708d424cb8c&prompt=none&custom_response_headers=%5B%7B%22CustomHeader1%22%3A%22custom_header_value_1%22%7D%2C%7B%22CustomHeader3%22%3A%22custom_header_value_3%22%7D%2C%7B%22CustomHeader2%22%3A%22custom_header_value_2%22%7D%5D

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302
Connection: Keep-Alive
Content-Length: 0
CustomHeader1: custom_header_value_1
CustomHeader2: custom_header_value_2
CustomHeader3: custom_header_value_3
Date: Thu, 05 Dec 2019 07:12:21 GMT
Keep-Alive: timeout=5, max=100
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm#access_token=1081a23d-b4a6-4e76-a619-95e8028f75a3&scope=address+openid+profile+email&id_token=eyJraWQiOiI5MjA3MzdmZC1mYWQ3LTQxNzAtOWU0OS00Y2Q2Yjc1N2EyNTRfc2lnX3JzMjU2IiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJhdF9oYXNoIjoiVjNEV0xzdEVpaTNYYXpUdUx5VlVqZyIsImF1ZCI6IjEwMDE5Zjk1LTBjNTItNGJjNi04NjRhLTgzZGQ4YzU5YTI2NyIsInN1YiI6ImFISHFJSHBSUzhzTFF0Q0dRMkF0SVlMVWNPVlUwd3FQbDhZdDRTeURNazgiLCJzX2hhc2giOiJwdXpqUl9CYTBiekdpUVgtMUo4aUlnIiwiYXV0aF90aW1lIjoxNTc1NTI5OTQxLCJpc3MiOiJodHRwczovL2plbmtpbnMtY2IuZ2x1dS5vcmciLCJleHAiOjE1NzU1MzM1NDIsImlhdCI6MTU3NTUyOTk0Miwibm9uY2UiOiIwZWJmZjFjZS1iM2JlLTQ4MTgtODQ4Ni0yNzA4ZDQyNGNiOGMiLCJveE9wZW5JRENvbm5lY3RWZXJzaW9uIjoib3BlbmlkY29ubmVjdC0xLjAifQ.fcBiHMR_y_D4C8h39mUsvKFrm_TWIX7jQUI2Iu3kpQGks3UzmFmUTxA8yXNi3av6PMpN8vrSzTJUlJ9zZUa9qXsz30RjGxttnU2UZ-fwrIduWwW2ii5CA-hIFNTIZZXv-K1U57WT7zYDMJzASD_IjOLdRlO06Boo9rDD8IgbDVHHRFdhMoUuntmXi8DQpCk1VMsc7QIiOB-FYK0GgYQ9kO-VThNVo80FMU9AWoVtIFJN8Ozx_HtD8INHkAsFXQ6zw0b6sjFjHEJD_5RL4NXpJC8jUBgV9w_6eFZxxMbpruBY-mMzXXrXgeaipJDFHQH18GcMvPgCVKdNU8BRyQv3Uw&session_id=4fdedd21-ba75-4746-8c5e-bed448e28c79&state=b09d434e-7ba9-43a7-b1b3-fd544ba4b64a&token_type=bearer&session_state=49a42d22b054ea1b2de3da9655699c3d5b49ea57c8ea2159880fb094fc7a60d0.5b8d3ba2-5030-4b96-9d92-a6f7bb14cead&expires_in=299
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block



#######################################################
TEST: AuthorizationResponseCustomHeaderTest
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "oxAuthTrustedClient" : "true",
  "application_type" : "web",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "sector_identifier_uri" : "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "client_name" : "oxAuth test app",
  "response_types" : [ "code", "token", "id_token" ]
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1719
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:12:22 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=3da8c1d4-64f2-486e-9673-eb3ae5d26e2a",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "cf2c93ed-59fb-4951-b6a8-dcabb4745ced",
    "client_id": "3da8c1d4-64f2-486e-9673-eb3ae5d26e2a",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "openid profile org_name email work_phone user_name address clientinfo permission super_gluu_ro_session uma_protection test phone oxd",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "da24d394-ea72-4003-93ac-316a55a78df4",
    "client_id_issued_at": 1575529942,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": [
        "refresh_token",
        "authorization_code",
        "implicit"
    ],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616342,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": [
        "code",
        "token",
        "id_token"
    ]
}

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/authorize HTTP/1.1
Host: jenkins-cb.gluu.org
Authorization: Basic dGVzdF91c2VyOnRlc3RfdXNlcl9wYXNzd29yZA==

response_type=code+token+id_token&client_id=3da8c1d4-64f2-486e-9673-eb3ae5d26e2a&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=e8d9c009-73af-4aa3-9faf-71d465ff008d&nonce=672331f7-87e3-483c-84c4-703922e860af&prompt=none&custom_response_headers=%5B%7B%22CustomHeader1%22%3A%22custom_header_value_1%22%7D%2C%7B%22CustomHeader3%22%3A%22custom_header_value_3%22%7D%2C%7B%22CustomHeader2%22%3A%22custom_header_value_2%22%7D%5D

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302
Connection: Keep-Alive
Content-Length: 0
CustomHeader1: custom_header_value_1
CustomHeader2: custom_header_value_2
CustomHeader3: custom_header_value_3
Date: Thu, 05 Dec 2019 07:12:22 GMT
Keep-Alive: timeout=5, max=100
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm#access_token=10f8d484-2383-4ba3-97b3-af5f62ddc95a&code=6ddc72ce-7591-4a38-92e7-d69e0b75897f&scope=address+openid+profile+email&id_token=eyJraWQiOiI5MjA3MzdmZC1mYWQ3LTQxNzAtOWU0OS00Y2Q2Yjc1N2EyNTRfc2lnX3JzMjU2IiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJhdF9oYXNoIjoiaUJRNlFVZDl5RktvWEVkdFNxQ1BJZyIsImF1ZCI6IjNkYThjMWQ0LTY0ZjItNDg2ZS05NjczLWViM2FlNWQyNmUyYSIsImNfaGFzaCI6IkVwT3ZvbXFqdjdpYUE5bnR5Sk9hWWciLCJzdWIiOiJhSEhxSUhwUlM4c0xRdENHUTJBdElZTFVjT1ZVMHdxUGw4WXQ0U3lETWs4Iiwic19oYXNoIjoiVTdLbVdfTlZrWHRjNXFlLUxIU29XdyIsImF1dGhfdGltZSI6MTU3NTUyOTk0MiwiaXNzIjoiaHR0cHM6Ly9qZW5raW5zLWNiLmdsdXUub3JnIiwiZXhwIjoxNTc1NTMzNTQzLCJpYXQiOjE1NzU1Mjk5NDMsIm5vbmNlIjoiNjcyMzMxZjctODdlMy00ODNjLTg0YzQtNzAzOTIyZTg2MGFmIiwib3hPcGVuSURDb25uZWN0VmVyc2lvbiI6Im9wZW5pZGNvbm5lY3QtMS4wIn0.h6dkEBKsAY2NXl7I60f-PrX2QJmr56xEYwiyBauS71mM5C_O4C-MRlycfMGFyKiBPyy-qtNPayOrOG6uSPVsL452xJBD6NrSKsdMk_HXuWxsBua5U-80aKHXJciP-6iG0gyAtPRduxWS8-99wksNuiso0nAsZRx1agV88yOB80HPAH_rg3Jhw9ypJr1QN3OyQSSqIM6nN-noansnYMcE8dXBn98FFLHZjZ0AHvWYR8vNJCtat1d87AdiuwAZKAaFAOWjBlb3uqwH_iJRrqLSdZCqDSas8mNez_3AU6FB8gtOqdBMR4phhtM7lrfZAT_Lolsel_VumQqQ4gb8DWfbFQ&session_id=f3a98dae-89bf-4907-86e8-541f2a4478b2&state=e8d9c009-73af-4aa3-9faf-71d465ff008d&token_type=bearer&session_state=17e2abeaa7bcf9819881262a23c6bfce2a4ea3d06ea416cc54d185d3599f2c87.5da9ebfa-5fcc-43a1-9406-b7c487a447f4&expires_in=299
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block



#######################################################
TEST: OpenID Connect Discovery
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
GET /.well-known/webfinger?resource=acct%3Atest_user%40jenkins-cb.gluu.org&rel=http%3A%2F%2Fopenid.net%2Fspecs%2Fconnect%2F1.0%2Fissuer HTTP/1.1
Host: jenkins-cb.gluu.org

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Connection: Keep-Alive
Content-Length: 187
Content-Type: application/jrd+json;charset=iso-8859-1
Date: Thu, 05 Dec 2019 07:12:23 GMT
Keep-Alive: timeout=5, max=100
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "subject": "acct:test_user@jenkins-cb.gluu.org",
    "links": [{
        "rel": "http://openid.net/specs/connect/1.0/issuer",
        "href": "https://jenkins-cb.gluu.org"
    }]
}


OpenID Connect Configuration
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
GET /.well-known/openid-configuration HTTP/1.1
Host: jenkins-cb.gluu.org

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Connection: Keep-Alive
Content-Length: 5934
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:12:23 GMT
Keep-Alive: timeout=5, max=100
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
  "request_parameter_supported" : true,
  "token_revocation_endpoint" : "https://jenkins-cb.gluu.org/oxauth/restv1/revoke",
  "introspection_endpoint" : "https://jenkins-cb.gluu.org/oxauth/restv1/introspection",
  "claims_parameter_supported" : true,
  "check_session_iframe" : "https://jenkins-cb.gluu.org/oxauth/opiframe.htm",
  "scopes_supported" : [ "https://jenkins-cb.gluu.org/oxauth/restv1/uma/scopes/scim_access", "address", "test", "clientinfo", "openid", "user_name", "uma_protection", "profile", "http://photoz.example.com/dev/scopes/view", "work_phone", "https://jenkins-cb.gluu.org/oxauth/restv1/uma/scopes/passport_access", "permission", "http://photoz.example.com/dev/scopes/all", "modify", "oxtrust-api-write", "oxtrust-api-read", "phone", "mobile_phone", "oxd", "super_gluu_ro_session", "org_name", "email" ],
  "issuer" : "https://jenkins-cb.gluu.org",
  "acr_values_supported" : [ "simple_password_auth", "basic_lock", "basic" ],
  "userinfo_encryption_enc_values_supported" : [ "RSA1_5", "RSA-OAEP", "A128KW", "A256KW" ],
  "id_token_encryption_enc_values_supported" : [ "A128CBC+HS256", "A256CBC+HS512", "A128GCM", "A256GCM" ],
  "authorization_endpoint" : "https://jenkins-cb.gluu.org/oxauth/restv1/authorize",
  "service_documentation" : "http://gluu.org/docs",
  "request_object_encryption_enc_values_supported" : [ "A128CBC+HS256", "A256CBC+HS512", "A128GCM", "A256GCM" ],
  "display_values_supported" : [ "page", "popup" ],
  "id_generation_endpoint" : "https://jenkins-cb.gluu.org/oxauth/restv1/id",
  "userinfo_signing_alg_values_supported" : [ "HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "ES256", "ES384", "ES512" ],
  "claims_supported" : [ "oxAuthRedirectURI", "street_address", "country", "zoneinfo", "birthdate", "gender", "user_name", "formatted", "oxAuthIdTokenSignedResponseAlg", "oxAuthScope", "work_phone", "phone_mobile_number", "preferred_username", "inum", "locale", "oxAuthAppType", "updated_at", "nickname", "member_of", "org_name", "email", "website", "email_verified", "profile", "locality", "phone_number_verified", "given_name", "middle_name", "picture", "name", "phone_number", "postal_code", "region", "family_name" ],
  "scope_to_claims_mapping" : [ {
    "clientinfo" : [ "name", "inum", "oxAuthAppType", "oxAuthIdTokenSignedResponseAlg", "oxAuthRedirectURI", "oxAuthScope" ]
  }, {
    "permission" : [ ]
  }, {
    "super_gluu_ro_session" : [ ]
  }, {
    "mobile_phone" : [ "phone_mobile_number" ]
  }, {
    "uma_protection" : [ ]
  }, {
    "test" : [ "member_of" ]
  }, {
    "phone" : [ "phone_number_verified", "phone_number" ]
  }, {
    "https://jenkins-cb.gluu.org/oxauth/restv1/uma/scopes/scim_access" : [ ]
  }, {
    "oxd" : [ ]
  }, {
    "http://photoz.example.com/dev/scopes/view" : [ ]
  }, {
    "oxtrust-api-write" : [ ]
  }, {
    "openid" : [ ]
  }, {
    "oxtrust-api-read" : [ ]
  }, {
    "profile" : [ "name", "family_name", "given_name", "middle_name", "nickname", "preferred_username", "profile", "picture", "website", "gender", "birthdate", "zoneinfo", "locale", "updated_at" ]
  }, {
    "org_name" : [ "org_name" ]
  }, {
    "email" : [ "email_verified", "email" ]
  }, {
    "work_phone" : [ "work_phone" ]
  }, {
    "modify" : [ ]
  }, {
    "user_name" : [ "user_name" ]
  }, {
    "address" : [ "formatted", "postal_code", "street_address", "locality", "country", "region" ]
  }, {
    "https://jenkins-cb.gluu.org/oxauth/restv1/uma/scopes/passport_access" : [ ]
  }, {
    "http://photoz.example.com/dev/scopes/all" : [ ]
  } ],
  "claim_types_supported" : [ "normal" ],
  "op_policy_uri" : "http://ox.gluu.org/doku.php?id=oxauth:policy",
  "token_endpoint_auth_methods_supported" : [ "client_secret_basic", "client_secret_post", "client_secret_jwt", "private_key_jwt" ],
  "tls_client_certificate_bound_access_tokens" : true,
  "response_modes_supported" : [ "fragment", "query", "form_post" ],
  "token_endpoint" : "https://jenkins-cb.gluu.org/oxauth/restv1/token",
  "response_types_supported" : [ "code", "code token id_token", "token", "code token", "id_token", "code id_token", "token id_token" ],
  "request_uri_parameter_supported" : true,
  "userinfo_encryption_alg_values_supported" : [ "RSA1_5", "RSA-OAEP", "A128KW", "A256KW" ],
  "grant_types_supported" : [ "client_credentials", "refresh_token", "authorization_code", "password", "urn:ietf:params:oauth:grant-type:uma-ticket", "implicit" ],
  "end_session_endpoint" : "https://jenkins-cb.gluu.org/oxauth/restv1/end_session",
  "ui_locales_supported" : [ "en", "es" ],
  "userinfo_endpoint" : "https://jenkins-cb.gluu.org/oxauth/restv1/userinfo",
  "token_endpoint_auth_signing_alg_values_supported" : [ "HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "ES256", "ES384", "ES512" ],
  "op_tos_uri" : "http://ox.gluu.org/doku.php?id=oxauth:tos",
  "frontchannel_logout_supported" : true,
  "auth_level_mapping" : {
    "-1" : [ "simple_password_auth" ],
    "20" : [ "basic_lock" ],
    "10" : [ "basic" ]
  },
  "require_request_uri_registration" : false,
  "id_token_encryption_alg_values_supported" : [ "RSA1_5", "RSA-OAEP", "A128KW", "A256KW" ],
  "jwks_uri" : "https://jenkins-cb.gluu.org/oxauth/restv1/jwks",
  "frontchannel_logout_session_supported" : true,
  "subject_types_supported" : [ "public", "pairwise" ],
  "id_token_signing_alg_values_supported" : [ "none", "HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "ES256", "ES384", "ES512" ],
  "registration_endpoint" : "https://jenkins-cb.gluu.org/oxauth/restv1/register",
  "claims_locales_supported" : [ "en" ],
  "clientinfo_endpoint" : "https://jenkins-cb.gluu.org/oxauth/restv1/clientinfo",
  "request_object_signing_alg_values_supported" : [ "none", "HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "ES256", "ES384", "ES512" ],
  "request_object_encryption_alg_values_supported" : [ "RSA1_5", "RSA-OAEP", "A128KW", "A256KW" ],
  "id_token_token_binding_cnf_values_supported" : [ "tbh" ]
}


#######################################################
TEST: defaultResponseModeBasicCode
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "application_type" : "web",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "sector_identifier_uri" : "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "client_name" : "oxAuth test app",
  "response_types" : [ "code" ]
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1648
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:12:23 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=485c844a-2aae-42d6-a9c7-9a92d251e109",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "2102e2c4-bf63-4b5f-a433-54cfaeb8b81e",
    "client_id": "485c844a-2aae-42d6-a9c7-9a92d251e109",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "permission email openid user_name profile test clientinfo phone org_name work_phone oxd uma_protection super_gluu_ro_session address",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "c67cc042-1249-4526-aa37-beb50282364f",
    "client_id_issued_at": 1575529943,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": [
        "refresh_token",
        "authorization_code"
    ],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616343,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": ["code"]
}

authenticateResourceOwnerAndGrantAccess: Cleaning cookies
authenticateResourceOwnerAndGrantAccess: authorizationRequestUrl:https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=code&client_id=485c844a-2aae-42d6-a9c7-9a92d251e109&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=e48f83c7-2266-4a2a-af85-22b75774a36b
authenticateResourceOwnerAndGrantAccess: sessionState:bf8e07323b21aaddc6e8cd5228eba2846bfb77167e2e7df2e36c31ac083ff43d.377b5abc-0506-4eeb-8b6e-33c3e58a88d8
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=code&client_id=485c844a-2aae-42d6-a9c7-9a92d251e109&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=e48f83c7-2266-4a2a-af85-22b75774a36b

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm?code=e04b5c17-d2ea-4033-9e56-7eab2378bae9&scope=address+openid+profile+email&session_id=98c26839-8b13-486c-a725-33557051b538&state=e48f83c7-2266-4a2a-af85-22b75774a36b&session_state=bf8e07323b21aaddc6e8cd5228eba2846bfb77167e2e7df2e36c31ac083ff43d.377b5abc-0506-4eeb-8b6e-33c3e58a88d8

#######################################################
TEST: defaultResponseModeHybridCodeIdToken
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "application_type" : "web",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "sector_identifier_uri" : "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "client_name" : "oxAuth test app",
  "response_types" : [ "code", "id_token" ]
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1719
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:12:27 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=36729e4e-0f82-40c5-8146-33eaa8c18562",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "90682aae-c7b4-48a5-ad98-c8123408dca0",
    "client_id": "36729e4e-0f82-40c5-8146-33eaa8c18562",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "uma_protection clientinfo openid super_gluu_ro_session permission user_name org_name email profile test oxd address work_phone phone",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "76bb0528-158c-481e-8fbb-bb351784c50e",
    "client_id_issued_at": 1575529947,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": [
        "refresh_token",
        "authorization_code",
        "implicit"
    ],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616347,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": [
        "code",
        "token",
        "id_token"
    ]
}

authenticateResourceOwnerAndGrantAccess: Cleaning cookies
authenticateResourceOwnerAndGrantAccess: authorizationRequestUrl:https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=code+id_token&client_id=36729e4e-0f82-40c5-8146-33eaa8c18562&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=c5c7d14f-e844-47d6-8920-c9e1c9a13007&nonce=28fb21ed-d552-4c06-a614-66b0a008c183
authenticateResourceOwnerAndGrantAccess: sessionState:206011a46fbaccbb872e491014599db0ef5709f8713dcd48251bd2e66062035a.50a974e1-9e93-439d-a49e-06f32b89e5a4
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=code+id_token&client_id=36729e4e-0f82-40c5-8146-33eaa8c18562&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=c5c7d14f-e844-47d6-8920-c9e1c9a13007&nonce=28fb21ed-d552-4c06-a614-66b0a008c183

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm#code=64f018b9-16ed-45eb-a9d5-19b7b2befec5&scope=address+openid+profile+email&id_token=eyJraWQiOiI5MjA3MzdmZC1mYWQ3LTQxNzAtOWU0OS00Y2Q2Yjc1N2EyNTRfc2lnX3JzMjU2IiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJhdWQiOiIzNjcyOWU0ZS0wZjgyLTQwYzUtODE0Ni0zM2VhYThjMTg1NjIiLCJjX2hhc2giOiJFc05FNHlLSHdNRXhEcURYNS1KQXBnIiwic3ViIjoiYUhIcUlIcFJTOHNMUXRDR1EyQXRJWUxVY09WVTB3cVBsOFl0NFN5RE1rOCIsInNfaGFzaCI6InNSbEdLV2NJTWotZVZETmhqMUhNcnciLCJhdXRoX3RpbWUiOjE1NzU1Mjk5NDgsImlzcyI6Imh0dHBzOi8vamVua2lucy1jYi5nbHV1Lm9yZyIsImV4cCI6MTU3NTUzMzU1MCwiaWF0IjoxNTc1NTI5OTUwLCJub25jZSI6IjI4ZmIyMWVkLWQ1NTItNGMwNi1hNjE0LTY2YjBhMDA4YzE4MyIsIm94T3BlbklEQ29ubmVjdFZlcnNpb24iOiJvcGVuaWRjb25uZWN0LTEuMCJ9.CA7jHcZtdkJqF6moPrYrmRIy6FXh2BRB1GT7jN0j2uvmQ7Oq7DQ7I8PPYTG8CPz7pmQMVJpmd4Ea5aNVUV15MIlG1gKJB8vw22ImvJzl8IK041fSwHZLyCYtGIeGSUMYUMQIEfqqNa8frdA-L8-rQ44yHkqHYhE3VDIzlcoPawtqBr6JNQDcqcrg_w4HAO3PROrTOziJh8y0852lOmoZNhaCujFirCFUcBKzpYJW_Ybe5wC8qbFWu2iTWo-nPidExw5g0Xo8fZ5I-f0f2GOsn30g-7pF3R66ffzGVSKEbSDiMOxjhGWl7tZXLGoDQ7flkH4Qyg5dTPZSM2Bak6qNKA&session_id=cf5b063b-7cda-41f0-8792-2a6f9885d81e&state=c5c7d14f-e844-47d6-8920-c9e1c9a13007&session_state=206011a46fbaccbb872e491014599db0ef5709f8713dcd48251bd2e66062035a.50a974e1-9e93-439d-a49e-06f32b89e5a4

#######################################################
TEST: defaultResponseModeHybridCodeIdTokenToken
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "application_type" : "web",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "sector_identifier_uri" : "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "client_name" : "oxAuth test app",
  "response_types" : [ "code", "id_token", "token" ]
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1719
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:12:30 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=ed6eddfd-abaa-4cb3-8efd-7cbb68ad1061",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "5c16a309-00f1-4194-ad1e-99a959208e40",
    "client_id": "ed6eddfd-abaa-4cb3-8efd-7cbb68ad1061",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "super_gluu_ro_session address test oxd user_name clientinfo profile org_name uma_protection openid phone permission email work_phone",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "e76bc58e-c259-44d3-a346-f2437d64d021",
    "client_id_issued_at": 1575529950,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": [
        "refresh_token",
        "authorization_code",
        "implicit"
    ],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616350,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": [
        "code",
        "token",
        "id_token"
    ]
}

authenticateResourceOwnerAndGrantAccess: Cleaning cookies
authenticateResourceOwnerAndGrantAccess: authorizationRequestUrl:https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=code+id_token+token&client_id=ed6eddfd-abaa-4cb3-8efd-7cbb68ad1061&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=9a776be7-970f-41c5-9f02-a93767dcbf6e&nonce=e0df1da1-e960-48e4-967e-218dfa34947d
authenticateResourceOwnerAndGrantAccess: sessionState:cd6d4013a51d29f2f82f3359d0afc99249f33851ea64cbbb156d6614239d6559.8df5a2ed-a368-412f-b4b2-79ef54384c95
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=code+id_token+token&client_id=ed6eddfd-abaa-4cb3-8efd-7cbb68ad1061&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=9a776be7-970f-41c5-9f02-a93767dcbf6e&nonce=e0df1da1-e960-48e4-967e-218dfa34947d

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm#access_token=30eda61c-870e-44c3-9b3c-47a3bcf64dc1&code=555d8f72-49e9-4be5-a436-cbbdaa5aa378&scope=address+openid+profile+email&id_token=eyJraWQiOiI5MjA3MzdmZC1mYWQ3LTQxNzAtOWU0OS00Y2Q2Yjc1N2EyNTRfc2lnX3JzMjU2IiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJhdF9oYXNoIjoiV0NLcEtrMjVvNDhSMkhyaV9KWGUxQSIsImF1ZCI6ImVkNmVkZGZkLWFiYWEtNGNiMy04ZWZkLTdjYmI2OGFkMTA2MSIsImNfaGFzaCI6Im1UdjJ3X0l3Rnp4ZlFfblIxZ29GX0EiLCJzdWIiOiJhSEhxSUhwUlM4c0xRdENHUTJBdElZTFVjT1ZVMHdxUGw4WXQ0U3lETWs4Iiwic19oYXNoIjoidF9IMl9MbTg2U1lsTnZ2c2xpY3dQUSIsImF1dGhfdGltZSI6MTU3NTUyOTk1MSwiaXNzIjoiaHR0cHM6Ly9qZW5raW5zLWNiLmdsdXUub3JnIiwiZXhwIjoxNTc1NTMzNTU0LCJpYXQiOjE1NzU1Mjk5NTQsIm5vbmNlIjoiZTBkZjFkYTEtZTk2MC00OGU0LTk2N2UtMjE4ZGZhMzQ5NDdkIiwib3hPcGVuSURDb25uZWN0VmVyc2lvbiI6Im9wZW5pZGNvbm5lY3QtMS4wIn0.QWW8qS-mRQVo4NMweF6oP52Q6OmfX37eXPruICsbZfWLLGotNVdLRakegFZIdC2pJPARjkPm9R9FMFS4yyv6G0n7Z59igQWVr6cjIVzcAYmtM-EJtxF-0ksgTluuqAqhTp1S7C9RK3sMV9Frgxrie5NmOHuSGBPSx0pulR2HR0f2u1mE2fQyzsCQ0wT2PQ_R4mfGKcfDkLhCa5VF3SUvEAJLB50feTysTsawFQy9qZEN3tAmAn1pis4zj9-WlBgoiZhyzJb3YJkad7h2F8rvbFfI0ymR0cTJZP3cYD8iVggRVqXQ9_mxg-46HT6P1TfIdaoSdrqn82h0R84Kr9_DMQ&session_id=5275b788-c389-4cc3-9a5b-f5eab2bfcd1e&state=9a776be7-970f-41c5-9f02-a93767dcbf6e&token_type=bearer&session_state=cd6d4013a51d29f2f82f3359d0afc99249f33851ea64cbbb156d6614239d6559.8df5a2ed-a368-412f-b4b2-79ef54384c95&expires_in=299

#######################################################
TEST: defaultResponseModeHybridCodeToken
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "application_type" : "web",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "sector_identifier_uri" : "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "client_name" : "oxAuth test app",
  "response_types" : [ "code", "token" ]
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1699
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:12:34 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=1549c648-ca91-4555-bd7a-949465fc379a",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "008e17bd-f47a-42e2-b25e-023e3e6b5d97",
    "client_id": "1549c648-ca91-4555-bd7a-949465fc379a",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "email super_gluu_ro_session clientinfo uma_protection work_phone address user_name permission openid phone profile org_name oxd test",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "5c61703c-ba18-4e9b-aad6-f7fb8aba2bfc",
    "client_id_issued_at": 1575529954,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": [
        "refresh_token",
        "authorization_code",
        "implicit"
    ],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616354,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": [
        "code",
        "token"
    ]
}

authenticateResourceOwnerAndGrantAccess: Cleaning cookies
authenticateResourceOwnerAndGrantAccess: authorizationRequestUrl:https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=code+token&client_id=1549c648-ca91-4555-bd7a-949465fc379a&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=3242f940-980e-435f-a839-94309047a62e&nonce=687c78d8-c0a9-411c-870f-9be7226ff7f0
authenticateResourceOwnerAndGrantAccess: sessionState:685a60f4ade207d65372c9a19cc583047d59e2c2f0ef04beba5830483c2fe773.4c070ba4-6fa8-49b5-9427-172d0c769d92
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=code+token&client_id=1549c648-ca91-4555-bd7a-949465fc379a&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=3242f940-980e-435f-a839-94309047a62e&nonce=687c78d8-c0a9-411c-870f-9be7226ff7f0

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm#access_token=02ba3a57-081e-4168-82a5-3bdfac37d2bc&code=a5939644-3fb1-4993-964c-8dda9671df31&scope=address+openid+profile+email&session_id=f86c6a58-bce8-4c3f-858d-264a7f0c3b4b&state=3242f940-980e-435f-a839-94309047a62e&token_type=bearer&session_state=685a60f4ade207d65372c9a19cc583047d59e2c2f0ef04beba5830483c2fe773.4c070ba4-6fa8-49b5-9427-172d0c769d92&expires_in=299

#######################################################
TEST: defaultResponseModeImplicitIdToken
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "application_type" : "web",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "sector_identifier_uri" : "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "client_name" : "oxAuth test app",
  "response_types" : [ "id_token" ]
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1634
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:12:38 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=faaf238b-b096-46a2-8ad6-fc75967ee081",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "3731ff47-637a-4e47-8957-c15132b26299",
    "client_id": "faaf238b-b096-46a2-8ad6-fc75967ee081",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "work_phone org_name profile address permission email test uma_protection super_gluu_ro_session clientinfo openid oxd user_name phone",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "f7919fa4-3781-4a3b-ab59-8fe0ab86f91c",
    "client_id_issued_at": 1575529958,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": ["implicit"],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616358,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": [
        "token",
        "id_token"
    ]
}

authenticateResourceOwnerAndGrantAccess: Cleaning cookies
authenticateResourceOwnerAndGrantAccess: authorizationRequestUrl:https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=id_token&client_id=faaf238b-b096-46a2-8ad6-fc75967ee081&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=b15ea104-136a-45cf-84e9-ad8f5c34ba7c&nonce=b523259b-b28c-4b58-8aed-045d5b3cd49b
authenticateResourceOwnerAndGrantAccess: sessionState:8876a0a754a5ddcbd2fffc853e536d2fc8c1446c4f15b2564c24755dc683bd82.a7369eed-6611-48fd-92a4-fff64d3db47a
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=id_token&client_id=faaf238b-b096-46a2-8ad6-fc75967ee081&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=b15ea104-136a-45cf-84e9-ad8f5c34ba7c&nonce=b523259b-b28c-4b58-8aed-045d5b3cd49b

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm#scope=address+openid+profile+email&id_token=eyJraWQiOiI5MjA3MzdmZC1mYWQ3LTQxNzAtOWU0OS00Y2Q2Yjc1N2EyNTRfc2lnX3JzMjU2IiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJhdWQiOiJmYWFmMjM4Yi1iMDk2LTQ2YTItOGFkNi1mYzc1OTY3ZWUwODEiLCJzdWIiOiJhSEhxSUhwUlM4c0xRdENHUTJBdElZTFVjT1ZVMHdxUGw4WXQ0U3lETWs4Iiwic19oYXNoIjoiRWVSaWhNc0tQLXlNNzVwdHFhZW43ZyIsImF1dGhfdGltZSI6MTU3NTUyOTk1OSwiaXNzIjoiaHR0cHM6Ly9qZW5raW5zLWNiLmdsdXUub3JnIiwiZXhwIjoxNTc1NTMzNTYxLCJpYXQiOjE1NzU1Mjk5NjEsIm5vbmNlIjoiYjUyMzI1OWItYjI4Yy00YjU4LThhZWQtMDQ1ZDViM2NkNDliIiwib3hPcGVuSURDb25uZWN0VmVyc2lvbiI6Im9wZW5pZGNvbm5lY3QtMS4wIn0.iqhyK9A83Lm8jQkl9-ekTFWef9mp2IyP7lm26GhTJkoYy8GIDi7bEzrwTyWpW1A73XJ2irllIXLmxsrXFQsnkJB0alBWbIjY03-V2NAEjhWXKJybPbV1OSTMGcqJYh5kRqfTQtLu05uPoAqpwUzBL5eLc5a5WINkgAGfv8AV6qcHUuUZqJXHmrfuKeseInbG4Gw4GmPqUCYbqa1nT8Tc3Xcv6n9_ENZ44TbLDqSQc86VXOnq24-8qVOgxLPXlaZOuXn5EbvwsbzJU1VGnxRzVRiTYU0RgpVl8huZzGS3JPdzsDDPf8N17SFpqGvfMbu6hbsRILnFmqu6xxlCu4KRUQ&session_id=ff50a461-002b-42c6-8858-95164defd214&state=b15ea104-136a-45cf-84e9-ad8f5c34ba7c&session_state=8876a0a754a5ddcbd2fffc853e536d2fc8c1446c4f15b2564c24755dc683bd82.a7369eed-6611-48fd-92a4-fff64d3db47a

#######################################################
TEST: defaultResponseModeImplicitIdTokenToken
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "application_type" : "web",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "sector_identifier_uri" : "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "client_name" : "oxAuth test app",
  "response_types" : [ "id_token", "token" ]
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1634
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:12:41 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=1d3d3336-344d-4030-8d66-e7a607707934",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "5bfa6729-428e-4d36-9f91-d3c842ca274a",
    "client_id": "1d3d3336-344d-4030-8d66-e7a607707934",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "address user_name oxd openid uma_protection work_phone test email permission org_name profile super_gluu_ro_session clientinfo phone",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "3d0c4d26-849f-47d6-a4c9-8dd7667b69d7",
    "client_id_issued_at": 1575529961,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": ["implicit"],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616361,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": [
        "token",
        "id_token"
    ]
}

authenticateResourceOwnerAndGrantAccess: Cleaning cookies
authenticateResourceOwnerAndGrantAccess: authorizationRequestUrl:https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=id_token+token&client_id=1d3d3336-344d-4030-8d66-e7a607707934&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=8515a105-e825-4498-b078-f62ae8845728&nonce=634b44fc-1c1c-4db9-92ea-c762c0991d01
authenticateResourceOwnerAndGrantAccess: sessionState:48dfd3fc90e6fd291cb9affa0a3f496eca36db7863c74dc36d106f774229d22a.bf95b4e7-511c-4833-8cc2-36dc8efce897
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=id_token+token&client_id=1d3d3336-344d-4030-8d66-e7a607707934&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=8515a105-e825-4498-b078-f62ae8845728&nonce=634b44fc-1c1c-4db9-92ea-c762c0991d01

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm#access_token=eb0c6a9c-51a4-4c2e-8fd8-61b3fb4fb2e5&scope=address+openid+profile+email&id_token=eyJraWQiOiI5MjA3MzdmZC1mYWQ3LTQxNzAtOWU0OS00Y2Q2Yjc1N2EyNTRfc2lnX3JzMjU2IiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJhdF9oYXNoIjoiWlppUkZzZjhRWXo5dkttOURtc19hUSIsImF1ZCI6IjFkM2QzMzM2LTM0NGQtNDAzMC04ZDY2LWU3YTYwNzcwNzkzNCIsInN1YiI6ImFISHFJSHBSUzhzTFF0Q0dRMkF0SVlMVWNPVlUwd3FQbDhZdDRTeURNazgiLCJzX2hhc2giOiJfYUMzSThNUzBSM3o0VnFYRDNObGpRIiwiYXV0aF90aW1lIjoxNTc1NTI5OTYyLCJpc3MiOiJodHRwczovL2plbmtpbnMtY2IuZ2x1dS5vcmciLCJleHAiOjE1NzU1MzM1NjUsImlhdCI6MTU3NTUyOTk2NSwibm9uY2UiOiI2MzRiNDRmYy0xYzFjLTRkYjktOTJlYS1jNzYyYzA5OTFkMDEiLCJveE9wZW5JRENvbm5lY3RWZXJzaW9uIjoib3BlbmlkY29ubmVjdC0xLjAifQ.W8rxBfZviK84UUdIXhQVBQYnLMflQTaZEeRhMbJGJc7H9oI7-MjKqKtNP34cIb2iVhH9XvtyChX8-_2ZBdjc21m9arg9y5WSIfXMsP0e_JrHy3sJFPOGGIBlLumCIGFIeqg2zmv6kaNuRGOfqfB3YU1t-PvVUmtIqbU-RQQjpNoD3TWp7y6Z9HWkeLtnFKNYU0tDKjRJEXsY19bGjTHKRtdZ7izrmRJJQ5RIZagiNr2qtNnxn-h8zUOB9CKgHEoLiRLYdna5pDotB8SB6GsI8fkmPUzHrB73mDqYIAeXVAORdq8otNtEa8q9mJD966nBn6B-pSl8PSpJF2NdfqeBEA&session_id=5910208e-c71e-48cf-9f39-354e0e14a66d&state=8515a105-e825-4498-b078-f62ae8845728&token_type=bearer&session_state=48dfd3fc90e6fd291cb9affa0a3f496eca36db7863c74dc36d106f774229d22a.bf95b4e7-511c-4833-8cc2-36dc8efce897&expires_in=299

#######################################################
TEST: formPostResponseModeBasicCode
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "application_type" : "web",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "sector_identifier_uri" : "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "client_name" : "oxAuth test app",
  "response_types" : [ "code" ]
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1648
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:12:45 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=af489a97-5008-40c2-8230-c85537764141",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "3413eebb-3579-40c5-b7bc-8abad8005cc9",
    "client_id": "af489a97-5008-40c2-8230-c85537764141",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "super_gluu_ro_session profile test uma_protection oxd work_phone email user_name clientinfo address permission org_name phone openid",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "0c7660a1-3647-447f-9221-e291af825a31",
    "client_id_issued_at": 1575529965,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": [
        "refresh_token",
        "authorization_code"
    ],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616365,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": ["code"]
}

authenticateResourceOwnerAndGrantAccess: Cleaning cookies
authenticateResourceOwnerAndGrantAccess: authorizationRequestUrl:https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=code&client_id=af489a97-5008-40c2-8230-c85537764141&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=9b22fab7-2ca4-4217-9302-fd4f79d227cd&response_mode=form_post
authenticateResourceOwnerAndGrantAccess: sessionState:ad7d1816a438663078434b4c4f6b256ae0b5ccb1926b799bafead138ec62010b.2d116d10-d622-4962-b1b6-c769cdd4e175
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=code&client_id=af489a97-5008-40c2-8230-c85537764141&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=9b22fab7-2ca4-4217-9302-fd4f79d227cd&response_mode=form_post

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm

#######################################################
TEST: formPostResponseModeHybridCodeIdToken
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "application_type" : "web",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "sector_identifier_uri" : "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "client_name" : "oxAuth test app",
  "response_types" : [ "code", "id_token" ]
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1719
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:12:48 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=497c1c8b-9f1a-433c-960b-301d51d3f1fc",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "b879e698-d88c-455c-99e6-e0993c7c24ce",
    "client_id": "497c1c8b-9f1a-433c-960b-301d51d3f1fc",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "super_gluu_ro_session email oxd permission profile work_phone address user_name clientinfo phone openid org_name test uma_protection",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "90a0dfd1-8fea-45e3-b1a7-a1ca4ce5ff82",
    "client_id_issued_at": 1575529969,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": [
        "refresh_token",
        "authorization_code",
        "implicit"
    ],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616369,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": [
        "code",
        "token",
        "id_token"
    ]
}

authenticateResourceOwnerAndGrantAccess: Cleaning cookies
authenticateResourceOwnerAndGrantAccess: authorizationRequestUrl:https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=code+id_token&client_id=497c1c8b-9f1a-433c-960b-301d51d3f1fc&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=5cc18a03-1c5b-40db-9bb6-9b7af67f193c&response_mode=form_post&nonce=43107704-fbd7-4027-b617-e5af3fc88ad7
authenticateResourceOwnerAndGrantAccess: sessionState:e1d95685825375ddacbfec14bad93bf6577496c3b866c18bf00f6cc95fbca59d.71fbc58e-6a82-4e2c-bf92-011be6095c3b
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=code+id_token&client_id=497c1c8b-9f1a-433c-960b-301d51d3f1fc&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=5cc18a03-1c5b-40db-9bb6-9b7af67f193c&response_mode=form_post&nonce=43107704-fbd7-4027-b617-e5af3fc88ad7

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm

#######################################################
TEST: formPostResponseModeHybridCodeIdTokenToken
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "application_type" : "web",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "sector_identifier_uri" : "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "client_name" : "oxAuth test app",
  "response_types" : [ "code", "id_token", "token" ]
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1719
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:12:52 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=fb5d6847-0a67-47d4-972b-f7c0d8dfee96",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "edd0bd20-8a00-4877-9ead-c78438df83b9",
    "client_id": "fb5d6847-0a67-47d4-972b-f7c0d8dfee96",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "work_phone org_name test clientinfo super_gluu_ro_session user_name phone openid email permission uma_protection profile oxd address",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "26e5f176-d2ad-4385-9cbc-1d9dd90619b8",
    "client_id_issued_at": 1575529972,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": [
        "refresh_token",
        "authorization_code",
        "implicit"
    ],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616372,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": [
        "code",
        "token",
        "id_token"
    ]
}

authenticateResourceOwnerAndGrantAccess: Cleaning cookies
authenticateResourceOwnerAndGrantAccess: authorizationRequestUrl:https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=code+id_token+token&client_id=fb5d6847-0a67-47d4-972b-f7c0d8dfee96&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=495f44c0-dbd3-43d6-bf6a-6267df1887b2&response_mode=form_post&nonce=f1fe90ab-a2eb-4ef2-890a-018faaba922c
authenticateResourceOwnerAndGrantAccess: sessionState:479257ba23cbd5a146230aee931ab1eee0c6ece7bbb246d85c05a86b0c02c51a.f0ed0477-9dc4-43a7-8d75-7dacfc768d8a
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=code+id_token+token&client_id=fb5d6847-0a67-47d4-972b-f7c0d8dfee96&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=495f44c0-dbd3-43d6-bf6a-6267df1887b2&response_mode=form_post&nonce=f1fe90ab-a2eb-4ef2-890a-018faaba922c

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm

#######################################################
TEST: formPostResponseModeHybridCodeToken
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "application_type" : "web",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "sector_identifier_uri" : "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "client_name" : "oxAuth test app",
  "response_types" : [ "code", "token" ]
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1699
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:12:56 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=21850297-0830-42fb-8225-0706210d3018",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "5fb3507e-d32d-47fa-ae59-896c6a5a8a15",
    "client_id": "21850297-0830-42fb-8225-0706210d3018",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "address profile openid work_phone oxd uma_protection permission phone email clientinfo user_name test org_name super_gluu_ro_session",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "1dac9e6c-eee2-47d2-834f-79a0513de405",
    "client_id_issued_at": 1575529976,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": [
        "refresh_token",
        "authorization_code",
        "implicit"
    ],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616376,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": [
        "code",
        "token"
    ]
}

authenticateResourceOwnerAndGrantAccess: Cleaning cookies
authenticateResourceOwnerAndGrantAccess: authorizationRequestUrl:https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=code+token&client_id=21850297-0830-42fb-8225-0706210d3018&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=d5d95157-c04d-477e-bfcd-84599b197e44&response_mode=form_post&nonce=a4f1f281-f1e4-48a5-a405-2657c8976152
authenticateResourceOwnerAndGrantAccess: sessionState:94b280bf0511b2794a381bfb19529359f8094aba6b52fd82a7621e66a32413e9.b3e92882-1651-4b12-bae5-1917c85efd4a
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=code+token&client_id=21850297-0830-42fb-8225-0706210d3018&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=d5d95157-c04d-477e-bfcd-84599b197e44&response_mode=form_post&nonce=a4f1f281-f1e4-48a5-a405-2657c8976152

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm

#######################################################
TEST: formPostResponseModeImplicitIdToken
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "application_type" : "web",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "sector_identifier_uri" : "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "client_name" : "oxAuth test app",
  "response_types" : [ "id_token" ]
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1634
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:12:59 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=f5eb139e-9e91-46c3-82af-9117c302eecb",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "faf373c9-48d2-4b81-8834-2622c77ba978",
    "client_id": "f5eb139e-9e91-46c3-82af-9117c302eecb",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "profile uma_protection email clientinfo super_gluu_ro_session org_name test user_name permission work_phone phone oxd address openid",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "682b4cea-e713-4273-aafb-203cc6d07cb2",
    "client_id_issued_at": 1575529979,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": ["implicit"],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616379,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": [
        "token",
        "id_token"
    ]
}

authenticateResourceOwnerAndGrantAccess: Cleaning cookies
authenticateResourceOwnerAndGrantAccess: authorizationRequestUrl:https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=id_token&client_id=f5eb139e-9e91-46c3-82af-9117c302eecb&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=fb228325-06c7-4dc7-b019-5c11488d4d84&response_mode=form_post&nonce=8157110d-4b34-4133-aceb-524e33a7342b
authenticateResourceOwnerAndGrantAccess: sessionState:941873d7c05d3b93fbacc3d5eebe5bd0739422c939c68ce9d8f689aed7a1a411.9d3dbc90-3a0e-4289-a41e-accf8dcddc30
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=id_token&client_id=f5eb139e-9e91-46c3-82af-9117c302eecb&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=fb228325-06c7-4dc7-b019-5c11488d4d84&response_mode=form_post&nonce=8157110d-4b34-4133-aceb-524e33a7342b

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm

#######################################################
TEST: formPostResponseModeImplicitIdTokenToken
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "application_type" : "web",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "sector_identifier_uri" : "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "client_name" : "oxAuth test app",
  "response_types" : [ "id_token", "token" ]
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1634
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:13:03 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=2b6992e6-a3b0-47c7-a47d-bf04bc6ecb68",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "b6356ad2-e5eb-4210-8437-cb4d6d702ebf",
    "client_id": "2b6992e6-a3b0-47c7-a47d-bf04bc6ecb68",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "email openid permission org_name clientinfo profile super_gluu_ro_session test uma_protection oxd work_phone phone user_name address",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "aaca1f16-90ea-47f2-b194-f4d11b314ebf",
    "client_id_issued_at": 1575529983,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": ["implicit"],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616383,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": [
        "token",
        "id_token"
    ]
}

authenticateResourceOwnerAndGrantAccess: Cleaning cookies
authenticateResourceOwnerAndGrantAccess: authorizationRequestUrl:https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=id_token+token&client_id=2b6992e6-a3b0-47c7-a47d-bf04bc6ecb68&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=8d42f0d3-1091-41f5-9112-e2d1838933d3&response_mode=form_post&nonce=e39aadc7-e09a-45cf-a6d2-a9b6e643ca54
authenticateResourceOwnerAndGrantAccess: sessionState:ce75676e66dda542d329a3ff01ebe3b7f723ffb147cec8a1cf035c1dd8c50f2c.8e002a9a-5bd3-4e5b-af13-69f2f41820e4
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=id_token+token&client_id=2b6992e6-a3b0-47c7-a47d-bf04bc6ecb68&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=8d42f0d3-1091-41f5-9112-e2d1838933d3&response_mode=form_post&nonce=e39aadc7-e09a-45cf-a6d2-a9b6e643ca54

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm

#######################################################
TEST: fragmentResponseModeBasicCode
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "application_type" : "web",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "sector_identifier_uri" : "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "client_name" : "oxAuth test app",
  "response_types" : [ "code" ]
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1648
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:13:07 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=ce813d8f-b1e5-4649-ab31-81e172dedff7",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "bfd6fa9d-e24d-4d51-8b4f-705474f2273e",
    "client_id": "ce813d8f-b1e5-4649-ab31-81e172dedff7",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "address clientinfo email super_gluu_ro_session permission oxd user_name work_phone test uma_protection profile phone openid org_name",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "36858a8d-a0c5-41ec-b1c2-78e815849d30",
    "client_id_issued_at": 1575529987,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": [
        "refresh_token",
        "authorization_code"
    ],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616387,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": ["code"]
}

authenticateResourceOwnerAndGrantAccess: Cleaning cookies
authenticateResourceOwnerAndGrantAccess: authorizationRequestUrl:https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=code&client_id=ce813d8f-b1e5-4649-ab31-81e172dedff7&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=0b2309d9-3797-4f66-b488-6e812f3e6463&response_mode=fragment
authenticateResourceOwnerAndGrantAccess: sessionState:ccb0146fde68267a184604ce0d0709e386354dc6d91553722d1e9dd221fe7213.bf790c52-84f4-4081-823c-a24e05d6f2ff
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=code&client_id=ce813d8f-b1e5-4649-ab31-81e172dedff7&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=0b2309d9-3797-4f66-b488-6e812f3e6463&response_mode=fragment

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm#code=42221c9f-67b1-4a99-abb2-c5ffde49f030&scope=address+openid+profile+email&session_id=278f7a5e-97da-408e-8930-975bf92c4809&state=0b2309d9-3797-4f66-b488-6e812f3e6463&session_state=ccb0146fde68267a184604ce0d0709e386354dc6d91553722d1e9dd221fe7213.bf790c52-84f4-4081-823c-a24e05d6f2ff

#######################################################
TEST: fragmentResponseModeHybridCodeIdToken
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "application_type" : "web",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "sector_identifier_uri" : "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "client_name" : "oxAuth test app",
  "response_types" : [ "code", "id_token" ]
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1719
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:13:10 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=6b5193bc-b0ca-4db8-b290-5ea1111c74c6",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "2e31bfd3-469f-49f0-a32a-07132c4fe416",
    "client_id": "6b5193bc-b0ca-4db8-b290-5ea1111c74c6",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "oxd address super_gluu_ro_session user_name work_phone email profile test permission uma_protection org_name phone clientinfo openid",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "0d853b47-9b91-4600-a3a8-f0ff8d2c678d",
    "client_id_issued_at": 1575529990,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": [
        "refresh_token",
        "authorization_code",
        "implicit"
    ],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616390,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": [
        "code",
        "token",
        "id_token"
    ]
}

authenticateResourceOwnerAndGrantAccess: Cleaning cookies
authenticateResourceOwnerAndGrantAccess: authorizationRequestUrl:https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=code+id_token&client_id=6b5193bc-b0ca-4db8-b290-5ea1111c74c6&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=4de166f0-d6f9-4603-bbbd-79f0a5925490&response_mode=fragment&nonce=802aa4b7-6630-4a64-aa4f-3482a49055a1
authenticateResourceOwnerAndGrantAccess: sessionState:cb8fc182b563dcef784484a9a53c1ad2056e594d42aa51a3bbecafb27e435e32.d0c015ff-a8bf-479d-ab3c-925c6489e791
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=code+id_token&client_id=6b5193bc-b0ca-4db8-b290-5ea1111c74c6&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=4de166f0-d6f9-4603-bbbd-79f0a5925490&response_mode=fragment&nonce=802aa4b7-6630-4a64-aa4f-3482a49055a1

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm#code=8be82dbe-c77f-47e1-b997-fe62383f576a&scope=address+openid+profile+email&id_token=eyJraWQiOiI5MjA3MzdmZC1mYWQ3LTQxNzAtOWU0OS00Y2Q2Yjc1N2EyNTRfc2lnX3JzMjU2IiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJhdWQiOiI2YjUxOTNiYy1iMGNhLTRkYjgtYjI5MC01ZWExMTExYzc0YzYiLCJjX2hhc2giOiItMWVmLXh1RjByOVk5OWIzZ29OcUVBIiwic3ViIjoiYUhIcUlIcFJTOHNMUXRDR1EyQXRJWUxVY09WVTB3cVBsOFl0NFN5RE1rOCIsInNfaGFzaCI6Il9hQUt0SzJyZkt4aHFiMW54a1NDTXciLCJhdXRoX3RpbWUiOjE1NzU1Mjk5OTEsImlzcyI6Imh0dHBzOi8vamVua2lucy1jYi5nbHV1Lm9yZyIsImV4cCI6MTU3NTUzMzU5NCwiaWF0IjoxNTc1NTI5OTk0LCJub25jZSI6IjgwMmFhNGI3LTY2MzAtNGE2NC1hYTRmLTM0ODJhNDkwNTVhMSIsIm94T3BlbklEQ29ubmVjdFZlcnNpb24iOiJvcGVuaWRjb25uZWN0LTEuMCJ9.DjzQUBshRyhozIBjAjofzMZZX-YhqYBtJdE2KPtSXgrOodl1ax1rEhi4tyEM4pdiMlyDIGRxX-SSkT-_3gKHBVPy9RjMy4OVb8JkzuhbjXBEuoCvyjPDOmEmmA1A-HJezqWEj5sADt8DszXZ6hpmqcGetaYr3Py0yjMXUiJRu_fV-Onmn6vY4hAMd5YhIWCrEBTVnvPdfYjJlf-EQJGnv0OVhawg4DM65vrQGUEj6zqfqessU_e4pQeIGtMCXD1sxZqYQmgMt1c1cAD00Q3J1zt-qalr-gYzpXBgTzovhVALyV1qaxLtUVcZvZejMhqRHILLl9nSZUgTqvEUGMcoew&session_id=d4c86105-f737-4ada-822c-bf80dabbfa12&state=4de166f0-d6f9-4603-bbbd-79f0a5925490&session_state=cb8fc182b563dcef784484a9a53c1ad2056e594d42aa51a3bbecafb27e435e32.d0c015ff-a8bf-479d-ab3c-925c6489e791

#######################################################
TEST: fragmentResponseModeHybridCodeIdTokenToken
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "application_type" : "web",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "sector_identifier_uri" : "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "client_name" : "oxAuth test app",
  "response_types" : [ "code", "id_token", "token" ]
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1719
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:13:14 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=70052782-44bf-4853-845b-a9c5718f5d96",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "9469eb7b-b3a0-4020-ae00-01afc12f9f0c",
    "client_id": "70052782-44bf-4853-845b-a9c5718f5d96",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "super_gluu_ro_session test org_name address phone oxd user_name profile permission openid uma_protection work_phone clientinfo email",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "86d13bf0-717f-4f61-b9cb-3a4cefe90e87",
    "client_id_issued_at": 1575529994,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": [
        "refresh_token",
        "authorization_code",
        "implicit"
    ],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616394,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": [
        "code",
        "token",
        "id_token"
    ]
}

authenticateResourceOwnerAndGrantAccess: Cleaning cookies
authenticateResourceOwnerAndGrantAccess: authorizationRequestUrl:https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=code+id_token+token&client_id=70052782-44bf-4853-845b-a9c5718f5d96&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=ecedb612-7519-49ef-a952-b8e2ed5b1643&response_mode=fragment&nonce=7f91ba15-8edb-4dfc-82ba-5da663b3c693
authenticateResourceOwnerAndGrantAccess: sessionState:e8d53aea838428ede8abfb93694f12d26da64c58fb88515e53ccb620e79d9da4.6495df71-a5be-4010-8369-231f34584e41
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=code+id_token+token&client_id=70052782-44bf-4853-845b-a9c5718f5d96&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=ecedb612-7519-49ef-a952-b8e2ed5b1643&response_mode=fragment&nonce=7f91ba15-8edb-4dfc-82ba-5da663b3c693

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm#access_token=401cbf00-2631-494b-8557-76b673937741&code=a428f5c1-e6cf-43bc-9039-c39fadcff03e&scope=address+openid+profile+email&id_token=eyJraWQiOiI5MjA3MzdmZC1mYWQ3LTQxNzAtOWU0OS00Y2Q2Yjc1N2EyNTRfc2lnX3JzMjU2IiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJhdF9oYXNoIjoiUWI4UFZ6Skg3c0VURnlRNURiYVFyQSIsImF1ZCI6IjcwMDUyNzgyLTQ0YmYtNDg1My04NDViLWE5YzU3MThmNWQ5NiIsImNfaGFzaCI6ImZ6ZlE3bXRHb0YxdzBrRU81bnh5c1EiLCJzdWIiOiJhSEhxSUhwUlM4c0xRdENHUTJBdElZTFVjT1ZVMHdxUGw4WXQ0U3lETWs4Iiwic19oYXNoIjoiSFVJUzZpcFJ2Xy1TUW9ESXlFWVo5ZyIsImF1dGhfdGltZSI6MTU3NTUyOTk5NSwiaXNzIjoiaHR0cHM6Ly9qZW5raW5zLWNiLmdsdXUub3JnIiwiZXhwIjoxNTc1NTMzNTk3LCJpYXQiOjE1NzU1Mjk5OTcsIm5vbmNlIjoiN2Y5MWJhMTUtOGVkYi00ZGZjLTgyYmEtNWRhNjYzYjNjNjkzIiwib3hPcGVuSURDb25uZWN0VmVyc2lvbiI6Im9wZW5pZGNvbm5lY3QtMS4wIn0.hYeaAid6ITVmvh8JXhiOjYwXdMGXemg_W0NV5UyZRihzqaEDy0ekVbFEqBtLFJI4zaHU-jZQLaSFJUFMbTUMwxr0YKiw3lpL2WodplI8lJD1ZOnoeEtUHM8D2wdrEb1EAq2lfBCZcYSkDw6DQvaM8QY-spCzigfAxztDzFP2tcvZ2uo9SKDFtY-oPCV741SfZcgP3xGL5BDdt4gFDrWqmKP7-3LYz8I3NGI3BHf5RqwqTJyD6NMl5IbmxC0OqaCWssIs_GXPKQl4mynVxxd9ZwrmN834fnGrqX4pINDVBdwmxW0BCImNHnHlDPibt4vmtFfS7wOhB6IqV6e5nVIdGA&session_id=69864f89-56fd-4ca6-a220-140d5915f906&state=ecedb612-7519-49ef-a952-b8e2ed5b1643&token_type=bearer&session_state=e8d53aea838428ede8abfb93694f12d26da64c58fb88515e53ccb620e79d9da4.6495df71-a5be-4010-8369-231f34584e41&expires_in=299

#######################################################
TEST: fragmentResponseModeHybridCodeToken
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "application_type" : "web",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "sector_identifier_uri" : "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "client_name" : "oxAuth test app",
  "response_types" : [ "code", "token" ]
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1699
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:13:17 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=95a23d78-f3f8-4842-ab59-1d5a157276de",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "8157c880-b32e-4bc9-9d5e-b0297ec07116",
    "client_id": "95a23d78-f3f8-4842-ab59-1d5a157276de",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "user_name super_gluu_ro_session openid uma_protection email permission profile test clientinfo address oxd work_phone org_name phone",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "cc365be8-6d81-4aec-b072-b047157f21a0",
    "client_id_issued_at": 1575529997,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": [
        "refresh_token",
        "authorization_code",
        "implicit"
    ],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616397,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": [
        "code",
        "token"
    ]
}

authenticateResourceOwnerAndGrantAccess: Cleaning cookies
authenticateResourceOwnerAndGrantAccess: authorizationRequestUrl:https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=code+token&client_id=95a23d78-f3f8-4842-ab59-1d5a157276de&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=5124edd9-4268-445d-8621-d25982e52b30&response_mode=fragment&nonce=dbd93bfe-2c7c-434c-9a9d-4c94da17c342
authenticateResourceOwnerAndGrantAccess: sessionState:38ef631dbfae8f62309b6ce040eaff8d9afdc06b414f79f8553102ea1f4fc372.c0239d12-3ac1-44bf-b830-719f6ddefddd
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=code+token&client_id=95a23d78-f3f8-4842-ab59-1d5a157276de&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=5124edd9-4268-445d-8621-d25982e52b30&response_mode=fragment&nonce=dbd93bfe-2c7c-434c-9a9d-4c94da17c342

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm#access_token=7fa53a9d-588c-4af6-9853-1c3e7fd1b3ac&code=d40537b2-91d0-4254-8262-4b19a9588f46&scope=address+openid+profile+email&session_id=657844e4-1258-4cec-88c2-18763368db6e&state=5124edd9-4268-445d-8621-d25982e52b30&token_type=bearer&session_state=38ef631dbfae8f62309b6ce040eaff8d9afdc06b414f79f8553102ea1f4fc372.c0239d12-3ac1-44bf-b830-719f6ddefddd&expires_in=299

#######################################################
TEST: fragmentResponseModeImplicitIdToken
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "application_type" : "web",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "sector_identifier_uri" : "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "client_name" : "oxAuth test app",
  "response_types" : [ "id_token" ]
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1634
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:13:21 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=37fe2689-b9c9-43f4-bb20-f8b0524afe68",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "c09e5663-a61f-4722-9bfa-7f00d37c0ee2",
    "client_id": "37fe2689-b9c9-43f4-bb20-f8b0524afe68",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "uma_protection clientinfo test oxd work_phone email phone permission profile openid super_gluu_ro_session address user_name org_name",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "36f79578-2ed1-4629-a706-2268851e8164",
    "client_id_issued_at": 1575530001,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": ["implicit"],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616401,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": [
        "token",
        "id_token"
    ]
}

authenticateResourceOwnerAndGrantAccess: Cleaning cookies
authenticateResourceOwnerAndGrantAccess: authorizationRequestUrl:https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=id_token&client_id=37fe2689-b9c9-43f4-bb20-f8b0524afe68&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=70887611-d70a-4784-87bc-1d2cc7d08f65&response_mode=fragment&nonce=671c1698-5704-4bd1-84fa-46f1cdcb1f6c
authenticateResourceOwnerAndGrantAccess: sessionState:772b9a49b6283adb722441c47d8828eadab8cc8169c4052ae3333db05015b798.b9919b6a-13bb-45e3-a9e8-1b9210327515
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=id_token&client_id=37fe2689-b9c9-43f4-bb20-f8b0524afe68&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=70887611-d70a-4784-87bc-1d2cc7d08f65&response_mode=fragment&nonce=671c1698-5704-4bd1-84fa-46f1cdcb1f6c

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm#scope=address+openid+profile+email&id_token=eyJraWQiOiI5MjA3MzdmZC1mYWQ3LTQxNzAtOWU0OS00Y2Q2Yjc1N2EyNTRfc2lnX3JzMjU2IiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJhdWQiOiIzN2ZlMjY4OS1iOWM5LTQzZjQtYmIyMC1mOGIwNTI0YWZlNjgiLCJzdWIiOiJhSEhxSUhwUlM4c0xRdENHUTJBdElZTFVjT1ZVMHdxUGw4WXQ0U3lETWs4Iiwic19oYXNoIjoibExESkRFb1d1RnBVQVRWTE9Nd3BkZyIsImF1dGhfdGltZSI6MTU3NTUzMDAwMiwiaXNzIjoiaHR0cHM6Ly9qZW5raW5zLWNiLmdsdXUub3JnIiwiZXhwIjoxNTc1NTMzNjA1LCJpYXQiOjE1NzU1MzAwMDUsIm5vbmNlIjoiNjcxYzE2OTgtNTcwNC00YmQxLTg0ZmEtNDZmMWNkY2IxZjZjIiwib3hPcGVuSURDb25uZWN0VmVyc2lvbiI6Im9wZW5pZGNvbm5lY3QtMS4wIn0.WVWqDtdFKCaadlu4x3zsiabsyFvRgfTMMpg2iM85To_rdv04HMy5nV2BZTy3uoKhbajHYccO4Mwul5Lc9Icwb8TdP7cLuDTiFO12lMdXHvHV24xAuwejvexp3K0Fx_4c0YaQVWW86owwyoruANKgOU7jsUDwc4_cvuKmbLHrlzEbi09y6ea8gJfL0Wip0ZoE2U08k5NLZcM3PeUos1XAYoZ9BgEy87jVfp1D7WFXr74yuQKSFkzl1VlqphuRP0G2O3EZnE6KwU-YWIGOmVgCwH8yXs-8Cf5QA3Dv8DZb_UiNE6U0GQKYdvraZvI8tYRMQKPwYCqfv80H8SSNMp2Vwg&session_id=cba20121-9253-46a8-b9bb-f3cfb4a981bf&state=70887611-d70a-4784-87bc-1d2cc7d08f65&session_state=772b9a49b6283adb722441c47d8828eadab8cc8169c4052ae3333db05015b798.b9919b6a-13bb-45e3-a9e8-1b9210327515

#######################################################
TEST: fragmentResponseModeImplicitIdTokenToken
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "application_type" : "web",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "sector_identifier_uri" : "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "client_name" : "oxAuth test app",
  "response_types" : [ "id_token", "token" ]
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1634
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:13:25 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=3ccd5f16-8060-4a46-9e92-b0043a2c127a",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "df4c88e2-da9d-4761-ae89-372d1a629c04",
    "client_id": "3ccd5f16-8060-4a46-9e92-b0043a2c127a",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "profile test super_gluu_ro_session uma_protection email permission phone work_phone user_name openid clientinfo address org_name oxd",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "458bb269-60a2-4a24-8490-1e2d2fb93aef",
    "client_id_issued_at": 1575530005,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": ["implicit"],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616405,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": [
        "token",
        "id_token"
    ]
}

authenticateResourceOwnerAndGrantAccess: Cleaning cookies
authenticateResourceOwnerAndGrantAccess: authorizationRequestUrl:https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=id_token+token&client_id=3ccd5f16-8060-4a46-9e92-b0043a2c127a&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=b957a86e-03cf-4feb-b8a9-88cd137b5223&response_mode=fragment&nonce=48f3bcc1-b352-4baf-acf2-fedfa0eb4d94
authenticateResourceOwnerAndGrantAccess: sessionState:e2a86788dbcece4665a315e47f912cce28b557424e2926cc722bdb63c6ee0a3c.b47f9194-73a1-4ea3-8535-fdce1161f9e4
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=id_token+token&client_id=3ccd5f16-8060-4a46-9e92-b0043a2c127a&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=b957a86e-03cf-4feb-b8a9-88cd137b5223&response_mode=fragment&nonce=48f3bcc1-b352-4baf-acf2-fedfa0eb4d94

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm#access_token=2ec82a2c-27d2-4435-aca5-e8d3f5422565&scope=address+openid+profile+email&id_token=eyJraWQiOiI5MjA3MzdmZC1mYWQ3LTQxNzAtOWU0OS00Y2Q2Yjc1N2EyNTRfc2lnX3JzMjU2IiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJhdF9oYXNoIjoiTF96a282TUw0V1pXd3dGeUFfaDZnUSIsImF1ZCI6IjNjY2Q1ZjE2LTgwNjAtNGE0Ni05ZTkyLWIwMDQzYTJjMTI3YSIsInN1YiI6ImFISHFJSHBSUzhzTFF0Q0dRMkF0SVlMVWNPVlUwd3FQbDhZdDRTeURNazgiLCJzX2hhc2giOiJYRENUSzBnTjdtNTI4ODMzN2xObkh3IiwiYXV0aF90aW1lIjoxNTc1NTMwMDA2LCJpc3MiOiJodHRwczovL2plbmtpbnMtY2IuZ2x1dS5vcmciLCJleHAiOjE1NzU1MzM2MDgsImlhdCI6MTU3NTUzMDAwOCwibm9uY2UiOiI0OGYzYmNjMS1iMzUyLTRiYWYtYWNmMi1mZWRmYTBlYjRkOTQiLCJveE9wZW5JRENvbm5lY3RWZXJzaW9uIjoib3BlbmlkY29ubmVjdC0xLjAifQ.c-iHUeRfBTa-dCPDI7CEeKsPzsqI5wJ6Gu4xdS-QoZ6GnjL9lBCUdrYHpPHIlW-hmlIis1gdKmEcmhFhUjehVWkbARmXSy3Ag2wa9ZuNh7KF-tZu-M0rZIPd-iXYwEZSow-HOr3CwFAnzLsqx_DfRqob6LJNvCZ2bQBNunBYkBIaBCDYCZMTyCpZiXnRKoOhG2OD7tz1NuggaW5Yte7bcbejtzMiuMXK57t9sfMRTccf8Xzg3RZ3gmpDu1jbqFzBc988kykWgwvO4iHv4UPTefyO5WbGEZr5sO1jpKbNEYVHnbk6nFJCF7bpSIfdX9n0GXnKP0gTkFM6EmHjtG2Vlw&session_id=45f8afe0-a426-47d2-8b03-6c3458932b7b&state=b957a86e-03cf-4feb-b8a9-88cd137b5223&token_type=bearer&session_state=e2a86788dbcece4665a315e47f912cce28b557424e2926cc722bdb63c6ee0a3c.b47f9194-73a1-4ea3-8535-fdce1161f9e4&expires_in=299

#######################################################
TEST: queryResponseModeBasicCode
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "application_type" : "web",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "sector_identifier_uri" : "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "client_name" : "oxAuth test app",
  "response_types" : [ "code" ]
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1648
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:13:29 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=22a33c15-06fa-4322-aae8-c8795518fe87",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "bf32d1a0-f349-41c3-a0c9-6fbffea9d3e0",
    "client_id": "22a33c15-06fa-4322-aae8-c8795518fe87",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "uma_protection email permission phone work_phone user_name openid clientinfo address org_name oxd profile test super_gluu_ro_session",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "66213335-e3f3-4334-abed-1d7a3d3eea23",
    "client_id_issued_at": 1575530009,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": [
        "refresh_token",
        "authorization_code"
    ],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616409,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": ["code"]
}

authenticateResourceOwnerAndGrantAccess: Cleaning cookies
authenticateResourceOwnerAndGrantAccess: authorizationRequestUrl:https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=code&client_id=22a33c15-06fa-4322-aae8-c8795518fe87&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=5e4fc2af-9b16-4ff0-bdad-3191f72cfe3a&response_mode=query
authenticateResourceOwnerAndGrantAccess: sessionState:b01ea8995d767f7c4d91a60541b1e21ba6758337bdc9c7574ea7202c0e0b5eab.cf55caaa-8c07-42ca-a0b6-966cded132b5
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=code&client_id=22a33c15-06fa-4322-aae8-c8795518fe87&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=5e4fc2af-9b16-4ff0-bdad-3191f72cfe3a&response_mode=query

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm?code=047eb0ac-bfda-4314-a447-0322c3d30117&scope=address+openid+profile+email&session_id=b80fd795-487d-4442-b51f-01f2ec45d8bb&state=5e4fc2af-9b16-4ff0-bdad-3191f72cfe3a&session_state=b01ea8995d767f7c4d91a60541b1e21ba6758337bdc9c7574ea7202c0e0b5eab.cf55caaa-8c07-42ca-a0b6-966cded132b5

#######################################################
TEST: queryResponseModeHybridCodeIdToken
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "application_type" : "web",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "sector_identifier_uri" : "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "client_name" : "oxAuth test app",
  "response_types" : [ "code", "id_token" ]
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1719
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:13:32 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=6ae00d4c-6c18-49bf-8237-a1e79abe98b1",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "fe02dc56-d54d-4edd-9b3c-3d6b3fae92cf",
    "client_id": "6ae00d4c-6c18-49bf-8237-a1e79abe98b1",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "openid phone uma_protection user_name profile oxd work_phone super_gluu_ro_session org_name permission clientinfo test email address",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "e752b45f-bae7-4da8-9a87-2b7576c6bbe7",
    "client_id_issued_at": 1575530012,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": [
        "refresh_token",
        "authorization_code",
        "implicit"
    ],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616412,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": [
        "code",
        "token",
        "id_token"
    ]
}

authenticateResourceOwnerAndGrantAccess: Cleaning cookies
authenticateResourceOwnerAndGrantAccess: authorizationRequestUrl:https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=code+id_token&client_id=6ae00d4c-6c18-49bf-8237-a1e79abe98b1&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=24c44825-582f-4c24-92c2-0dbde6bf5f76&response_mode=query&nonce=6b11579e-216a-4c50-9fcd-739338b88469
authenticateResourceOwnerAndGrantAccess: sessionState:cb69b3278c1cea38bb8874899d6db8a1f8f04d434ee5a275e3ce0c5efa684b89.7376edef-a1a2-4889-bfe4-841acd4842d3
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=code+id_token&client_id=6ae00d4c-6c18-49bf-8237-a1e79abe98b1&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=24c44825-582f-4c24-92c2-0dbde6bf5f76&response_mode=query&nonce=6b11579e-216a-4c50-9fcd-739338b88469

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm?code=7f911b4f-edfe-4ea4-b396-8b14c61c9bb7&scope=address+openid+profile+email&id_token=eyJraWQiOiI5MjA3MzdmZC1mYWQ3LTQxNzAtOWU0OS00Y2Q2Yjc1N2EyNTRfc2lnX3JzMjU2IiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJhdWQiOiI2YWUwMGQ0Yy02YzE4LTQ5YmYtODIzNy1hMWU3OWFiZTk4YjEiLCJjX2hhc2giOiIyR3I4ZC1idmZ3ZEdUdWhRMHkxSVpBIiwic3ViIjoiYUhIcUlIcFJTOHNMUXRDR1EyQXRJWUxVY09WVTB3cVBsOFl0NFN5RE1rOCIsInNfaGFzaCI6ImZCMnQ1REZGdUU0UG1zQkZQOEtZcUEiLCJhdXRoX3RpbWUiOjE1NzU1MzAwMTMsImlzcyI6Imh0dHBzOi8vamVua2lucy1jYi5nbHV1Lm9yZyIsImV4cCI6MTU3NTUzMzYxNSwiaWF0IjoxNTc1NTMwMDE1LCJub25jZSI6IjZiMTE1NzllLTIxNmEtNGM1MC05ZmNkLTczOTMzOGI4ODQ2OSIsIm94T3BlbklEQ29ubmVjdFZlcnNpb24iOiJvcGVuaWRjb25uZWN0LTEuMCJ9.dzwSVk1zP3gCQj1ClFfkMebcny6M2zcXP3YP-nMa57x-0Q9VP76xejB9FzHtx154jB7CDdEwqxcqEGCLkLrIYTkjTyifZTb2axT4o30aKYaELueIrkCe335ykOQkEsY5_X2dT84YAk4FBZR_hsc_TvsblydykDODZ5ESJphmUjSyICx-5XChT8usEZXcIjuGxNHt8h_3FgYWUa0Nvzz8t4S3Hq-31lMvCM7D-DFaglQqT-vO_BPXEJ7lIw12mOSWqBTIAlUiHZDYR_bSlMH6aO7fpMlOUm4kt9ahC-p2bQpViqdy2ip1RApeoPj1Ftg_0Y57ZrEwXI-HpHanZC7Xdw&session_id=ceee3bf9-d4bd-44e1-8186-390eabf0e21b&state=24c44825-582f-4c24-92c2-0dbde6bf5f76&session_state=cb69b3278c1cea38bb8874899d6db8a1f8f04d434ee5a275e3ce0c5efa684b89.7376edef-a1a2-4889-bfe4-841acd4842d3

#######################################################
TEST: queryResponseModeHybridCodeIdTokenToken
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "application_type" : "web",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "sector_identifier_uri" : "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "client_name" : "oxAuth test app",
  "response_types" : [ "code", "id_token", "token" ]
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1719
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:13:35 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=4b1be186-44a4-4717-b416-979e371ca025",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "5002dff0-6e1a-4d50-95c9-a270037412d1",
    "client_id": "4b1be186-44a4-4717-b416-979e371ca025",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "test address phone uma_protection openid oxd permission super_gluu_ro_session clientinfo user_name email org_name work_phone profile",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "a5445eb1-fb80-47ff-95d3-1f68825d3301",
    "client_id_issued_at": 1575530016,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": [
        "refresh_token",
        "authorization_code",
        "implicit"
    ],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616416,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": [
        "code",
        "token",
        "id_token"
    ]
}

authenticateResourceOwnerAndGrantAccess: Cleaning cookies
authenticateResourceOwnerAndGrantAccess: authorizationRequestUrl:https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=code+id_token+token&client_id=4b1be186-44a4-4717-b416-979e371ca025&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=fa7731b2-b459-4e53-9119-f659cdfdd782&response_mode=query&nonce=2e0ea9b7-3793-49dc-b2bb-46fc22937656
authenticateResourceOwnerAndGrantAccess: sessionState:993bc97119989d26eb07330642b765fdd396344acd1f2e991f01a5e52b163fdf.75a5461d-136c-44e8-90f2-b59d3dfc5acd
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=code+id_token+token&client_id=4b1be186-44a4-4717-b416-979e371ca025&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=fa7731b2-b459-4e53-9119-f659cdfdd782&response_mode=query&nonce=2e0ea9b7-3793-49dc-b2bb-46fc22937656

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm?access_token=75ecd6df-1001-49b2-8164-7dd116e5c236&code=74516ca3-9411-4b41-bdc2-182f815509bc&scope=address+openid+profile+email&id_token=eyJraWQiOiI5MjA3MzdmZC1mYWQ3LTQxNzAtOWU0OS00Y2Q2Yjc1N2EyNTRfc2lnX3JzMjU2IiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJhdF9oYXNoIjoia3huTVZnQUpXOWpZcjg4elNRY25vZyIsImF1ZCI6IjRiMWJlMTg2LTQ0YTQtNDcxNy1iNDE2LTk3OWUzNzFjYTAyNSIsImNfaGFzaCI6InhNOVBrMkQ5WTc3X21iWl9BQW5raXciLCJzdWIiOiJhSEhxSUhwUlM4c0xRdENHUTJBdElZTFVjT1ZVMHdxUGw4WXQ0U3lETWs4Iiwic19oYXNoIjoiQmd6RUpSUk1NMGxOR0l2LXpraTdCQSIsImF1dGhfdGltZSI6MTU3NTUzMDAxNiwiaXNzIjoiaHR0cHM6Ly9qZW5raW5zLWNiLmdsdXUub3JnIiwiZXhwIjoxNTc1NTMzNjE5LCJpYXQiOjE1NzU1MzAwMTksIm5vbmNlIjoiMmUwZWE5YjctMzc5My00OWRjLWIyYmItNDZmYzIyOTM3NjU2Iiwib3hPcGVuSURDb25uZWN0VmVyc2lvbiI6Im9wZW5pZGNvbm5lY3QtMS4wIn0.DYoOMvzmukJXg12QblwdQVKk4-NkkrRNHvK_gxKeP3sWXEgTYAy98_KUOv4IfOoeuRedj5micEWWJU6BODTUW9qf2e-4fg8YMlUmqx1BdWpxGWd1Jk72RQqI-bX-6XCJKrz6ylqLkW5ZPMiBXjto3SpNhHBFT2vlxqu1hDI6riAt0r9QSIOwuGlMgsfZRI5RvazzJbl6fsDfXq8jHdAqzp_M-bJGSv0UUrKopViEZAN8Q_GSEPk6ikCoP8vQ8QvmVdRZ-QEHDiUrqdGtfVCFkL4DA8ZibPjAvYLjiQtjTs2JRVAB1xEsHEB9y7TUyHEAj07-vnP4hERHUpnKxk2X9w&session_id=67ed5036-0b64-40ad-be36-022615e8b8cf&state=fa7731b2-b459-4e53-9119-f659cdfdd782&token_type=bearer&session_state=993bc97119989d26eb07330642b765fdd396344acd1f2e991f01a5e52b163fdf.75a5461d-136c-44e8-90f2-b59d3dfc5acd&expires_in=299

#######################################################
TEST: queryResponseModeHybridCodeToken
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "application_type" : "web",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "sector_identifier_uri" : "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "client_name" : "oxAuth test app",
  "response_types" : [ "code", "token" ]
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1699
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:13:39 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=378674e7-a542-4514-8ad9-6c9a2fda5d2f",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "f686cd92-b663-4db3-ab3b-e0836bef5a0c",
    "client_id": "378674e7-a542-4514-8ad9-6c9a2fda5d2f",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "permission super_gluu_ro_session clientinfo user_name profile oxd uma_protection email org_name openid phone test work_phone address",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "1d6ed94f-998a-4783-af14-bc3d92749945",
    "client_id_issued_at": 1575530019,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": [
        "refresh_token",
        "authorization_code",
        "implicit"
    ],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616419,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": [
        "code",
        "token"
    ]
}

authenticateResourceOwnerAndGrantAccess: Cleaning cookies
authenticateResourceOwnerAndGrantAccess: authorizationRequestUrl:https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=code+token&client_id=378674e7-a542-4514-8ad9-6c9a2fda5d2f&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=bd720ad8-9890-4f4e-9703-4b8373836898&response_mode=query&nonce=c8288f93-6d30-40ac-a590-d37d30585d08
authenticateResourceOwnerAndGrantAccess: sessionState:9c7d4c0def8b66d98a24580a8c671c39b31d143605630891c498a1d87cd57c32.676abf99-36ef-49b3-9ae0-0d48c89e1475
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=code+token&client_id=378674e7-a542-4514-8ad9-6c9a2fda5d2f&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=bd720ad8-9890-4f4e-9703-4b8373836898&response_mode=query&nonce=c8288f93-6d30-40ac-a590-d37d30585d08

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm?access_token=0ca64f36-0854-4373-9441-13283683a8d2&code=acd3c958-aa69-469e-99d1-0548ae0ab83e&scope=address+openid+profile+email&session_id=decb4903-a9b5-4570-be69-2033d806ed81&state=bd720ad8-9890-4f4e-9703-4b8373836898&token_type=bearer&session_state=9c7d4c0def8b66d98a24580a8c671c39b31d143605630891c498a1d87cd57c32.676abf99-36ef-49b3-9ae0-0d48c89e1475&expires_in=299

#######################################################
TEST: queryResponseModeImplicitIdToken
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "application_type" : "web",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "sector_identifier_uri" : "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "client_name" : "oxAuth test app",
  "response_types" : [ "id_token" ]
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1634
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:13:43 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=75e6e979-e218-4237-80f8-6cbb1ff24e7f",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "007f04ce-2973-4ad7-9b58-882042a92277",
    "client_id": "75e6e979-e218-4237-80f8-6cbb1ff24e7f",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "oxd permission super_gluu_ro_session email uma_protection user_name phone test address clientinfo profile openid org_name work_phone",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "9e3fbd83-3bcb-4a01-a4ff-49226aa9e212",
    "client_id_issued_at": 1575530023,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": ["implicit"],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616423,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": [
        "token",
        "id_token"
    ]
}

authenticateResourceOwnerAndGrantAccess: Cleaning cookies
authenticateResourceOwnerAndGrantAccess: authorizationRequestUrl:https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=id_token&client_id=75e6e979-e218-4237-80f8-6cbb1ff24e7f&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=ac068bf7-8ceb-4dc6-90e5-eb64cc354d22&response_mode=query&nonce=f9768cc1-34c8-4008-a259-c310d1a2bff4
authenticateResourceOwnerAndGrantAccess: sessionState:a43720c5523cec855d6518ec3ffd3035e13543963ce0d80d87bbbc2db65d46d7.2cb4a7e1-0446-41e9-8461-659c8f09da93
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=id_token&client_id=75e6e979-e218-4237-80f8-6cbb1ff24e7f&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=ac068bf7-8ceb-4dc6-90e5-eb64cc354d22&response_mode=query&nonce=f9768cc1-34c8-4008-a259-c310d1a2bff4

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm?scope=address+openid+profile+email&id_token=eyJraWQiOiI5MjA3MzdmZC1mYWQ3LTQxNzAtOWU0OS00Y2Q2Yjc1N2EyNTRfc2lnX3JzMjU2IiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJhdWQiOiI3NWU2ZTk3OS1lMjE4LTQyMzctODBmOC02Y2JiMWZmMjRlN2YiLCJzdWIiOiJhSEhxSUhwUlM4c0xRdENHUTJBdElZTFVjT1ZVMHdxUGw4WXQ0U3lETWs4Iiwic19oYXNoIjoiWHE2bTdqcy1yZlZWUGhLUExTaGtQZyIsImF1dGhfdGltZSI6MTU3NTUzMDAyNCwiaXNzIjoiaHR0cHM6Ly9qZW5raW5zLWNiLmdsdXUub3JnIiwiZXhwIjoxNTc1NTMzNjI2LCJpYXQiOjE1NzU1MzAwMjYsIm5vbmNlIjoiZjk3NjhjYzEtMzRjOC00MDA4LWEyNTktYzMxMGQxYTJiZmY0Iiwib3hPcGVuSURDb25uZWN0VmVyc2lvbiI6Im9wZW5pZGNvbm5lY3QtMS4wIn0.KIg5kWx9QsPNrJB6MazUDEGNfNfqBwUQxFNGqhG5xYwQZYLdzdL9-mBMpWq7hxOkONrkeigSF--loFx3o5ln37mi50j_H5s8r7X4VNThts6iTqoW2dXWQL4r_z6CKEgEPARcZiZLbH-BIVl8J1EZ5P_SIBAYcB78BVC2bcEcb9v2-YN7mYxBDjNpYExbM3gfwEcNE2yEYAW3gTXVu0x1wOC80siqN1UZHVkDSOZz1WOXwl13hjYW3MvjicjlpJmdjb30j7qkO8FMhfHCXQXJP7Hmb9bT2RI0vX8y3tJoHEQCo0AV8LXmg3zfBzceY084und3F4LPK1KZKggD6ag9ww&session_id=f6909509-a9f2-49db-93b5-d5cdd4cd3199&state=ac068bf7-8ceb-4dc6-90e5-eb64cc354d22&session_state=a43720c5523cec855d6518ec3ffd3035e13543963ce0d80d87bbbc2db65d46d7.2cb4a7e1-0446-41e9-8461-659c8f09da93

#######################################################
TEST: queryResponseModeImplicitIdTokenToken
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "application_type" : "web",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "sector_identifier_uri" : "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "client_name" : "oxAuth test app",
  "response_types" : [ "id_token", "token" ]
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1634
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:13:46 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=38c43b5d-082e-4394-a63a-0bf13f44e4bf",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "53cb3f2a-7e45-4149-92ec-2138f0c7221f",
    "client_id": "38c43b5d-082e-4394-a63a-0bf13f44e4bf",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "email phone openid profile oxd work_phone org_name test address super_gluu_ro_session uma_protection user_name permission clientinfo",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "49c4fd5f-dfbd-490d-8cfb-39fda4104afc",
    "client_id_issued_at": 1575530026,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": ["implicit"],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616426,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": [
        "token",
        "id_token"
    ]
}

authenticateResourceOwnerAndGrantAccess: Cleaning cookies
authenticateResourceOwnerAndGrantAccess: authorizationRequestUrl:https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=id_token+token&client_id=38c43b5d-082e-4394-a63a-0bf13f44e4bf&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=c867f3f8-c626-488d-8e97-7a9dcfc1d63a&response_mode=query&nonce=474a417a-d708-4801-bfc7-296404833971
authenticateResourceOwnerAndGrantAccess: sessionState:94f49bf48cc69ceca8909e39d06d7217d85e1274ad3cd5a50ffe870b90ef3f1d.34bcbd29-da8f-4de9-8595-4c8ecf5fe471
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=id_token+token&client_id=38c43b5d-082e-4394-a63a-0bf13f44e4bf&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=c867f3f8-c626-488d-8e97-7a9dcfc1d63a&response_mode=query&nonce=474a417a-d708-4801-bfc7-296404833971

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm?access_token=ea416726-963f-4110-addd-f65b85de3865&scope=address+openid+profile+email&id_token=eyJraWQiOiI5MjA3MzdmZC1mYWQ3LTQxNzAtOWU0OS00Y2Q2Yjc1N2EyNTRfc2lnX3JzMjU2IiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJhdF9oYXNoIjoid0cxc0ZYVWJOeWpUUXVLQ2I5TlM2ZyIsImF1ZCI6IjM4YzQzYjVkLTA4MmUtNDM5NC1hNjNhLTBiZjEzZjQ0ZTRiZiIsInN1YiI6ImFISHFJSHBSUzhzTFF0Q0dRMkF0SVlMVWNPVlUwd3FQbDhZdDRTeURNazgiLCJzX2hhc2giOiJ2a09pQzZoVlNTZzhXT0pQNFFDTzJ3IiwiYXV0aF90aW1lIjoxNTc1NTMwMDI3LCJpc3MiOiJodHRwczovL2plbmtpbnMtY2IuZ2x1dS5vcmciLCJleHAiOjE1NzU1MzM2MzAsImlhdCI6MTU3NTUzMDAzMCwibm9uY2UiOiI0NzRhNDE3YS1kNzA4LTQ4MDEtYmZjNy0yOTY0MDQ4MzM5NzEiLCJveE9wZW5JRENvbm5lY3RWZXJzaW9uIjoib3BlbmlkY29ubmVjdC0xLjAifQ.eFYXawvSxHP6kB0GdaQEM7Ff8Vq7R_zHeC4H5xcK2Sfyl77eOuTuLKriOt_adSkZDhf07PqvckjItxnFn5SynUllL-ks4dKgjHyW-tImVJCchJkmKhCAgDhcgLUJ73Thn-_UqIYh-PIXODYP8V_tjKnQUk_J6uC5UFMi0WAgmqvMKAjv8GvDnrI5iZS4iXgJ4dIoYpoLxTYwcJCkBWvn5DYDYZdW_0tDBVBgEmh_uOqnPndx0J19Q_zZZmnGneGaE57zegk04LbUm8iZJbockEysM06Tw5dRWUvtr3QZvgtjRdPsxjO_j0hA9YRB_VeQnI1OcoMPqACKTgRfA7umzA&session_id=09067f01-a54c-4d4b-a8e3-3a4c97c5af1b&state=c867f3f8-c626-488d-8e97-7a9dcfc1d63a&token_type=bearer&session_state=94f49bf48cc69ceca8909e39d06d7217d85e1274ad3cd5a50ffe870b90ef3f1d.34bcbd29-da8f-4de9-8595-4c8ecf5fe471&expires_in=299

#######################################################
TEST: OpenID Connect Discovery
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
GET /.well-known/webfinger?resource=acct%3Atest_user%40jenkins-cb.gluu.org&rel=http%3A%2F%2Fopenid.net%2Fspecs%2Fconnect%2F1.0%2Fissuer HTTP/1.1
Host: jenkins-cb.gluu.org

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Connection: Keep-Alive
Content-Length: 187
Content-Type: application/jrd+json;charset=iso-8859-1
Date: Thu, 05 Dec 2019 07:13:50 GMT
Keep-Alive: timeout=5, max=100
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "subject": "acct:test_user@jenkins-cb.gluu.org",
    "links": [{
        "rel": "http://openid.net/specs/connect/1.0/issuer",
        "href": "https://jenkins-cb.gluu.org"
    }]
}


OpenID Connect Configuration
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
GET /.well-known/openid-configuration HTTP/1.1
Host: jenkins-cb.gluu.org

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Connection: Keep-Alive
Content-Length: 5934
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:13:50 GMT
Keep-Alive: timeout=5, max=100
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
  "request_parameter_supported" : true,
  "token_revocation_endpoint" : "https://jenkins-cb.gluu.org/oxauth/restv1/revoke",
  "introspection_endpoint" : "https://jenkins-cb.gluu.org/oxauth/restv1/introspection",
  "claims_parameter_supported" : true,
  "check_session_iframe" : "https://jenkins-cb.gluu.org/oxauth/opiframe.htm",
  "scopes_supported" : [ "https://jenkins-cb.gluu.org/oxauth/restv1/uma/scopes/scim_access", "address", "test", "user_name", "clientinfo", "openid", "profile", "uma_protection", "http://photoz.example.com/dev/scopes/view", "work_phone", "https://jenkins-cb.gluu.org/oxauth/restv1/uma/scopes/passport_access", "permission", "http://photoz.example.com/dev/scopes/all", "modify", "oxtrust-api-write", "oxtrust-api-read", "phone", "mobile_phone", "oxd", "super_gluu_ro_session", "org_name", "email" ],
  "issuer" : "https://jenkins-cb.gluu.org",
  "acr_values_supported" : [ "simple_password_auth", "basic_lock", "basic" ],
  "userinfo_encryption_enc_values_supported" : [ "RSA1_5", "RSA-OAEP", "A128KW", "A256KW" ],
  "id_token_encryption_enc_values_supported" : [ "A128CBC+HS256", "A256CBC+HS512", "A128GCM", "A256GCM" ],
  "authorization_endpoint" : "https://jenkins-cb.gluu.org/oxauth/restv1/authorize",
  "service_documentation" : "http://gluu.org/docs",
  "request_object_encryption_enc_values_supported" : [ "A128CBC+HS256", "A256CBC+HS512", "A128GCM", "A256GCM" ],
  "display_values_supported" : [ "page", "popup" ],
  "id_generation_endpoint" : "https://jenkins-cb.gluu.org/oxauth/restv1/id",
  "userinfo_signing_alg_values_supported" : [ "HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "ES256", "ES384", "ES512" ],
  "claims_supported" : [ "oxAuthRedirectURI", "street_address", "country", "zoneinfo", "birthdate", "gender", "user_name", "formatted", "oxAuthIdTokenSignedResponseAlg", "oxAuthScope", "work_phone", "phone_mobile_number", "preferred_username", "inum", "locale", "oxAuthAppType", "updated_at", "nickname", "org_name", "member_of", "email", "website", "email_verified", "profile", "locality", "phone_number_verified", "given_name", "middle_name", "picture", "name", "phone_number", "postal_code", "region", "family_name" ],
  "scope_to_claims_mapping" : [ {
    "http://photoz.example.com/dev/scopes/all" : [ ]
  }, {
    "user_name" : [ "user_name" ]
  }, {
    "oxtrust-api-write" : [ ]
  }, {
    "clientinfo" : [ "name", "inum", "oxAuthAppType", "oxAuthIdTokenSignedResponseAlg", "oxAuthRedirectURI", "oxAuthScope" ]
  }, {
    "profile" : [ "name", "family_name", "given_name", "middle_name", "nickname", "preferred_username", "profile", "picture", "website", "gender", "birthdate", "zoneinfo", "locale", "updated_at" ]
  }, {
    "http://photoz.example.com/dev/scopes/view" : [ ]
  }, {
    "super_gluu_ro_session" : [ ]
  }, {
    "oxd" : [ ]
  }, {
    "uma_protection" : [ ]
  }, {
    "email" : [ "email_verified", "email" ]
  }, {
    "org_name" : [ "org_name" ]
  }, {
    "work_phone" : [ "work_phone" ]
  }, {
    "mobile_phone" : [ "phone_mobile_number" ]
  }, {
    "https://jenkins-cb.gluu.org/oxauth/restv1/uma/scopes/scim_access" : [ ]
  }, {
    "https://jenkins-cb.gluu.org/oxauth/restv1/uma/scopes/passport_access" : [ ]
  }, {
    "test" : [ "member_of" ]
  }, {
    "modify" : [ ]
  }, {
    "address" : [ "formatted", "postal_code", "street_address", "locality", "country", "region" ]
  }, {
    "permission" : [ ]
  }, {
    "phone" : [ "phone_number_verified", "phone_number" ]
  }, {
    "openid" : [ ]
  }, {
    "oxtrust-api-read" : [ ]
  } ],
  "claim_types_supported" : [ "normal" ],
  "op_policy_uri" : "http://ox.gluu.org/doku.php?id=oxauth:policy",
  "token_endpoint_auth_methods_supported" : [ "client_secret_basic", "client_secret_post", "client_secret_jwt", "private_key_jwt" ],
  "tls_client_certificate_bound_access_tokens" : true,
  "response_modes_supported" : [ "fragment", "query", "form_post" ],
  "token_endpoint" : "https://jenkins-cb.gluu.org/oxauth/restv1/token",
  "response_types_supported" : [ "code", "code token id_token", "token", "code token", "id_token", "code id_token", "token id_token" ],
  "request_uri_parameter_supported" : true,
  "userinfo_encryption_alg_values_supported" : [ "RSA1_5", "RSA-OAEP", "A128KW", "A256KW" ],
  "grant_types_supported" : [ "client_credentials", "refresh_token", "authorization_code", "password", "urn:ietf:params:oauth:grant-type:uma-ticket", "implicit" ],
  "end_session_endpoint" : "https://jenkins-cb.gluu.org/oxauth/restv1/end_session",
  "ui_locales_supported" : [ "en", "es" ],
  "userinfo_endpoint" : "https://jenkins-cb.gluu.org/oxauth/restv1/userinfo",
  "token_endpoint_auth_signing_alg_values_supported" : [ "HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "ES256", "ES384", "ES512" ],
  "op_tos_uri" : "http://ox.gluu.org/doku.php?id=oxauth:tos",
  "frontchannel_logout_supported" : true,
  "auth_level_mapping" : {
    "-1" : [ "simple_password_auth" ],
    "20" : [ "basic_lock" ],
    "10" : [ "basic" ]
  },
  "require_request_uri_registration" : false,
  "id_token_encryption_alg_values_supported" : [ "RSA1_5", "RSA-OAEP", "A128KW", "A256KW" ],
  "jwks_uri" : "https://jenkins-cb.gluu.org/oxauth/restv1/jwks",
  "frontchannel_logout_session_supported" : true,
  "subject_types_supported" : [ "public", "pairwise" ],
  "id_token_signing_alg_values_supported" : [ "none", "HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "ES256", "ES384", "ES512" ],
  "registration_endpoint" : "https://jenkins-cb.gluu.org/oxauth/restv1/register",
  "claims_locales_supported" : [ "en" ],
  "clientinfo_endpoint" : "https://jenkins-cb.gluu.org/oxauth/restv1/clientinfo",
  "request_object_signing_alg_values_supported" : [ "none", "HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "ES256", "ES384", "ES512" ],
  "request_object_encryption_alg_values_supported" : [ "RSA1_5", "RSA-OAEP", "A128KW", "A256KW" ],
  "id_token_token_binding_cnf_values_supported" : [ "tbh" ]
}


#######################################################
TEST: requestAuthorizationAccessToken
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "application_type" : "web",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "sector_identifier_uri" : "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "client_name" : "oxAuth test app",
  "response_types" : [ "code", "token", "id_token" ]
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1719
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:13:50 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=07e47586-dd51-4bbf-9e69-c61fdf366f92",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "8a94a2fb-dd77-4a18-9583-322cdc4d5a13",
    "client_id": "07e47586-dd51-4bbf-9e69-c61fdf366f92",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "user_name email clientinfo org_name phone address profile permission test super_gluu_ro_session oxd work_phone uma_protection openid",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "b6dbdb90-26e1-487b-bd06-a1ce240fe7cb",
    "client_id_issued_at": 1575530030,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": [
        "refresh_token",
        "authorization_code",
        "implicit"
    ],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616430,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": [
        "code",
        "token",
        "id_token"
    ]
}

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
GET /oxauth/restv1/register?{ } HTTP/1.1
Host: jenkins-cb.gluu.org
Authorization: Bearer 8a94a2fb-dd77-4a18-9583-322cdc4d5a13

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1719
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:13:50 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=07e47586-dd51-4bbf-9e69-c61fdf366f92",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "8a94a2fb-dd77-4a18-9583-322cdc4d5a13",
    "client_id": "07e47586-dd51-4bbf-9e69-c61fdf366f92",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "user_name email clientinfo org_name phone address profile permission test super_gluu_ro_session oxd work_phone uma_protection openid",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "b6dbdb90-26e1-487b-bd06-a1ce240fe7cb",
    "client_id_issued_at": 1575530030,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": [
        "refresh_token",
        "authorization_code",
        "implicit"
    ],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616430,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": [
        "code",
        "token",
        "id_token"
    ]
}

authenticateResourceOwnerAndGrantAccess: Cleaning cookies
authenticateResourceOwnerAndGrantAccess: authorizationRequestUrl:https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=token+id_token&client_id=07e47586-dd51-4bbf-9e69-c61fdf366f92&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=aa80a20b-5ef1-4b5b-8a37-6b51fb3eb135&nonce=a695a09f-e7ff-48bb-a7c7-d3abf503f24f
authenticateResourceOwnerAndGrantAccess: sessionState:e23185631a240b91b524cfcf4cfba3361a4e89c291d06902d4d6f5b3a3902526.2b4086a0-1036-49f1-83c6-8de6fa459e50
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=token+id_token&client_id=07e47586-dd51-4bbf-9e69-c61fdf366f92&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=aa80a20b-5ef1-4b5b-8a37-6b51fb3eb135&nonce=a695a09f-e7ff-48bb-a7c7-d3abf503f24f

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm#access_token=4f5990f7-0ff6-48f4-bc67-0e3374a5f12b&scope=address+openid+profile+email&id_token=eyJraWQiOiI5MjA3MzdmZC1mYWQ3LTQxNzAtOWU0OS00Y2Q2Yjc1N2EyNTRfc2lnX3JzMjU2IiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJhdF9oYXNoIjoiX3lEVWhfTTlYU3pfNmcwckI5SjNfZyIsImF1ZCI6IjA3ZTQ3NTg2LWRkNTEtNGJiZi05ZTY5LWM2MWZkZjM2NmY5MiIsInN1YiI6ImFISHFJSHBSUzhzTFF0Q0dRMkF0SVlMVWNPVlUwd3FQbDhZdDRTeURNazgiLCJzX2hhc2giOiI4YXpBaWZ4dXhqbXVxR21EUGhuNGt3IiwiYXV0aF90aW1lIjoxNTc1NTMwMDMxLCJpc3MiOiJodHRwczovL2plbmtpbnMtY2IuZ2x1dS5vcmciLCJleHAiOjE1NzU1MzM2MzQsImlhdCI6MTU3NTUzMDAzNCwibm9uY2UiOiJhNjk1YTA5Zi1lN2ZmLTQ4YmItYTdjNy1kM2FiZjUwM2YyNGYiLCJveE9wZW5JRENvbm5lY3RWZXJzaW9uIjoib3BlbmlkY29ubmVjdC0xLjAifQ.VL923i8CFFjWDaubzVALgCCv81AXNGhgoc8HicGLJhzY7UZm606wiAr1-a4vicjjGRY2V3CkqlEBD_n0qt_mpGxRk-J1ju1i4gAimXzDgvPYv6GLVaNsZQCYjZwyUKuLwD0tdh-dX_MQaKxmAbWtqk1y7am_Pn05fbr-5aFiGuYoUiIRjPAU6PFzYUhPWI3ZssX8ZY7Ev7I-OXzNa3sbJZfyCkn1JRdvAKfU_7ZEyVpkiva6fiGgaygw-e2X_hCVQMkIFuGgyDpafoBJh09fr-yukS2Vy6JowFW0b5U3rUYaYwHAwX0zoSPwACkiQ5nxXhWa9X3MfMA6aI7DXgzmcw&session_id=7f71161c-9ab5-4f8d-950a-d0acbdd51d4e&state=aa80a20b-5ef1-4b5b-8a37-6b51fb3eb135&token_type=bearer&session_state=e23185631a240b91b524cfcf4cfba3361a4e89c291d06902d4d6f5b3a3902526.2b4086a0-1036-49f1-83c6-8de6fa459e50&expires_in=299

#######################################################
TEST: requestAuthorizationAccessTokenFail
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "application_type" : "web",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "sector_identifier_uri" : "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "client_name" : "oxAuth test app",
  "response_types" : [ "code", "id_token" ]
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1719
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:13:54 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=052c04cc-3228-4e9d-92fb-3910431b8cdd",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "f8c6fcec-f321-431d-9456-ca05bd47a563",
    "client_id": "052c04cc-3228-4e9d-92fb-3910431b8cdd",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "work_phone address openid profile org_name clientinfo permission super_gluu_ro_session oxd phone user_name test uma_protection email",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "48b0859e-e846-4e60-b420-494447f14e6c",
    "client_id_issued_at": 1575530034,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": [
        "refresh_token",
        "authorization_code",
        "implicit"
    ],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616434,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": [
        "code",
        "token",
        "id_token"
    ]
}

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
GET /oxauth/restv1/register?{ } HTTP/1.1
Host: jenkins-cb.gluu.org
Authorization: Bearer f8c6fcec-f321-431d-9456-ca05bd47a563

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1719
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:13:54 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=052c04cc-3228-4e9d-92fb-3910431b8cdd",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "f8c6fcec-f321-431d-9456-ca05bd47a563",
    "client_id": "052c04cc-3228-4e9d-92fb-3910431b8cdd",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "work_phone address openid profile org_name clientinfo permission super_gluu_ro_session oxd phone user_name test uma_protection email",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "48b0859e-e846-4e60-b420-494447f14e6c",
    "client_id_issued_at": 1575530034,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": [
        "refresh_token",
        "authorization_code",
        "implicit"
    ],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616434,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": [
        "code",
        "token",
        "id_token"
    ]
}

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/authorize HTTP/1.1
Host: jenkins-cb.gluu.org

response_type=code+id_token&client_id=052c04cc-3228-4e9d-92fb-3910431b8cdd&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=fede29fd-d32a-4649-8380-388ea611bd4f&prompt=none&access_token=INVALID_ACCESS_TOKEN

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302
Connection: Keep-Alive
Content-Length: 0
Date: Thu, 05 Dec 2019 07:13:54 GMT
Keep-Alive: timeout=5, max=100
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm#error_description=The+request+is+missing+a+required+parameter%2C+includes+an+unsupported+parameter+or+parameter+value%2C+or+is+otherwise+malformed.&state=fede29fd-d32a-4649-8380-388ea611bd4f&error=invalid_request
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block



#######################################################
TEST: requestAuthorizationAccessTokenUserBasicAuth
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "application_type" : "web",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "sector_identifier_uri" : "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "client_name" : "oxAuth test app",
  "response_types" : [ "code", "token", "id_token" ]
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1719
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:13:54 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=acaf0717-dbb2-4189-8b23-57eeb6327047",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "b2323e12-dc80-44a0-b2cd-42e0e9251a84",
    "client_id": "acaf0717-dbb2-4189-8b23-57eeb6327047",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "openid address profile test permission clientinfo email phone org_name oxd uma_protection user_name work_phone super_gluu_ro_session",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "8141458b-0929-441d-be78-1e1bd8168140",
    "client_id_issued_at": 1575530034,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": [
        "refresh_token",
        "authorization_code",
        "implicit"
    ],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616434,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": [
        "code",
        "token",
        "id_token"
    ]
}

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
GET /oxauth/restv1/register?{ } HTTP/1.1
Host: jenkins-cb.gluu.org
Authorization: Bearer b2323e12-dc80-44a0-b2cd-42e0e9251a84

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1719
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:13:54 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=acaf0717-dbb2-4189-8b23-57eeb6327047",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "b2323e12-dc80-44a0-b2cd-42e0e9251a84",
    "client_id": "acaf0717-dbb2-4189-8b23-57eeb6327047",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "openid address profile test permission clientinfo email phone org_name oxd uma_protection user_name work_phone super_gluu_ro_session",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "8141458b-0929-441d-be78-1e1bd8168140",
    "client_id_issued_at": 1575530034,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": [
        "refresh_token",
        "authorization_code",
        "implicit"
    ],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616434,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": [
        "code",
        "token",
        "id_token"
    ]
}

authenticateResourceOwnerAndGrantAccess: Cleaning cookies
authenticateResourceOwnerAndGrantAccess: authorizationRequestUrl:https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=token+id_token&client_id=acaf0717-dbb2-4189-8b23-57eeb6327047&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=9b0f85e7-3e40-4896-9d6e-1769dd41600d&nonce=a74143b5-3248-4828-a001-20f88575d50b
authenticateResourceOwnerAndGrantAccess: sessionState:1e08d8df52dc8699d6c25cda5081538ef26d6c7205fad47e9f3db542a844218f.bf6b9eb1-2201-4943-a9a6-b2fd88232f59
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=token+id_token&client_id=acaf0717-dbb2-4189-8b23-57eeb6327047&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=9b0f85e7-3e40-4896-9d6e-1769dd41600d&nonce=a74143b5-3248-4828-a001-20f88575d50b

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm#access_token=ec044e9c-cfd5-4a99-8def-a6798ffb3471&scope=address+openid+profile+email&id_token=eyJraWQiOiI5MjA3MzdmZC1mYWQ3LTQxNzAtOWU0OS00Y2Q2Yjc1N2EyNTRfc2lnX3JzMjU2IiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJhdF9oYXNoIjoiS3E1ZlRJNjdSOWFfWlRvQkF0MFROdyIsImF1ZCI6ImFjYWYwNzE3LWRiYjItNDE4OS04YjIzLTU3ZWViNjMyNzA0NyIsInN1YiI6ImFISHFJSHBSUzhzTFF0Q0dRMkF0SVlMVWNPVlUwd3FQbDhZdDRTeURNazgiLCJzX2hhc2giOiI2NnY1N2FXVmhON2VERm9FaV80WndBIiwiYXV0aF90aW1lIjoxNTc1NTMwMDM1LCJpc3MiOiJodHRwczovL2plbmtpbnMtY2IuZ2x1dS5vcmciLCJleHAiOjE1NzU1MzM2MzgsImlhdCI6MTU3NTUzMDAzOCwibm9uY2UiOiJhNzQxNDNiNS0zMjQ4LTQ4MjgtYTAwMS0yMGY4ODU3NWQ1MGIiLCJveE9wZW5JRENvbm5lY3RWZXJzaW9uIjoib3BlbmlkY29ubmVjdC0xLjAifQ.GnJpW-N2DC7pjy7yBErdapMw93QKPcfSYHlttSajO4EDSSRvgy0nZ6tztO0GkIWZavLzVhEvynlXZgH7QmhtLkOwNdEYY4_nY9NmzOvSbavRsqgTYJbB2xUW7SYo0m987HJMRCPS9eIVWp7AYEP1vcoSwVfqS3w-lOumrMMqn5OllVVcyBQAiNxQ-igi0T2ulO9HvayKxljJ6BRCbV_yH-3BevpJG8TPHdqDpsoJgt8wNzD_rt810l4gw7_CHUFDHZVyR0LsUVUUHOHFaEnOsNhDF2oLWRbyl9_c7-W26yq-sVuzrmaHjnNi3fRL8rrvQ3vQ8pz1_6dd8VpVCYzzMg&session_id=7b9bc54b-f5f9-4e5f-9301-a19093ac7912&state=9b0f85e7-3e40-4896-9d6e-1769dd41600d&token_type=bearer&session_state=1e08d8df52dc8699d6c25cda5081538ef26d6c7205fad47e9f3db542a844218f.bf6b9eb1-2201-4943-a9a6-b2fd88232f59&expires_in=299

#######################################################
TEST: requestAuthorizationCode
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "application_type" : "web",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "sector_identifier_uri" : "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "client_name" : "oxAuth test app",
  "response_types" : [ "code" ]
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1648
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:13:58 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=c33997d3-3800-4001-9c50-d726328476ce",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "7a8e331f-0257-4ccd-a924-6f9fe516d987",
    "client_id": "c33997d3-3800-4001-9c50-d726328476ce",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "profile email work_phone uma_protection address oxd test clientinfo super_gluu_ro_session org_name openid user_name phone permission",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "efec6a49-4356-4cac-814b-1cdbce09f254",
    "client_id_issued_at": 1575530038,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": [
        "refresh_token",
        "authorization_code"
    ],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616438,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": ["code"]
}

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
GET /oxauth/restv1/register?{ } HTTP/1.1
Host: jenkins-cb.gluu.org
Authorization: Bearer 7a8e331f-0257-4ccd-a924-6f9fe516d987

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1648
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:13:58 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=c33997d3-3800-4001-9c50-d726328476ce",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "7a8e331f-0257-4ccd-a924-6f9fe516d987",
    "client_id": "c33997d3-3800-4001-9c50-d726328476ce",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "profile email work_phone uma_protection address oxd test clientinfo super_gluu_ro_session org_name openid user_name phone permission",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "efec6a49-4356-4cac-814b-1cdbce09f254",
    "client_id_issued_at": 1575530038,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": [
        "refresh_token",
        "authorization_code"
    ],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616438,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": ["code"]
}

authenticateResourceOwnerAndGrantAccess: Cleaning cookies
authenticateResourceOwnerAndGrantAccess: authorizationRequestUrl:https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=code&client_id=c33997d3-3800-4001-9c50-d726328476ce&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=f14bf88a-e49c-4ca1-bd27-fc65614313ad
authenticateResourceOwnerAndGrantAccess: sessionState:1a1374468f6f38f0c442a883f90e62a253a6ee28887e5d81be6f933c0410dfbc.3ca311ae-892a-4b5a-ac53-47d877a87d93
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=code&client_id=c33997d3-3800-4001-9c50-d726328476ce&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=f14bf88a-e49c-4ca1-bd27-fc65614313ad

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm?code=2757417f-91c0-4334-bfce-c232dac9bdba&scope=address+openid+profile+email&session_id=1dface61-cb37-4c85-8860-36a59cc7b078&state=f14bf88a-e49c-4ca1-bd27-fc65614313ad&session_state=1a1374468f6f38f0c442a883f90e62a253a6ee28887e5d81be6f933c0410dfbc.3ca311ae-892a-4b5a-ac53-47d877a87d93

#######################################################
TEST: requestAuthorizationCodeFail1
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/authorize HTTP/1.1
Host: jenkins-cb.gluu.org
Authorization: Basic dGVzdF91c2VyOnRlc3RfdXNlcl9wYXNzd29yZA==

response_type=code

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 400
Connection: close
Content-Length: 208
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:14:02 GMT
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{"reason":"Invalid redirect uri.","error_description":"The request is missing a required parameter, includes an unsupported parameter or parameter value, or is otherwise malformed.","error":"invalid_request"}

#######################################################
TEST: requestAuthorizationCodeFail2
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "application_type" : "web",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "sector_identifier_uri" : "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "client_name" : "oxAuth test app",
  "response_types" : [ "code" ]
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1648
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:14:02 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=cfe5fafb-9ad1-48ac-a55d-024f3ea8abe7",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "bfa1b38c-3434-4372-aafb-88603cc06ea5",
    "client_id": "cfe5fafb-9ad1-48ac-a55d-024f3ea8abe7",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "address clientinfo oxd user_name phone work_phone profile uma_protection openid email test org_name super_gluu_ro_session permission",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "d4154e22-2cdd-4fac-8e2c-6474c78289e5",
    "client_id_issued_at": 1575530042,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": [
        "refresh_token",
        "authorization_code"
    ],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616442,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": ["code"]
}

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
GET /oxauth/restv1/register?{ } HTTP/1.1
Host: jenkins-cb.gluu.org
Authorization: Bearer bfa1b38c-3434-4372-aafb-88603cc06ea5

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1648
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:14:02 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=cfe5fafb-9ad1-48ac-a55d-024f3ea8abe7",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "bfa1b38c-3434-4372-aafb-88603cc06ea5",
    "client_id": "cfe5fafb-9ad1-48ac-a55d-024f3ea8abe7",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "address clientinfo oxd user_name phone work_phone profile uma_protection openid email test org_name super_gluu_ro_session permission",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "d4154e22-2cdd-4fac-8e2c-6474c78289e5",
    "client_id_issued_at": 1575530042,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": [
        "refresh_token",
        "authorization_code"
    ],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616442,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": ["code"]
}

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/authorize HTTP/1.1
Host: jenkins-cb.gluu.org
Authorization: Basic dGVzdF91c2VyOnRlc3RfdXNlcl9wYXNzd29yZA==

response_type=code&client_id=cfe5fafb-9ad1-48ac-a55d-024f3ea8abe7&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2FINVALID_REDIRECT_URI&state=98dff147-df25-497c-b90e-e5b0551fbcb1&prompt=none

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 400
Connection: close
Content-Length: 220
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:14:02 GMT
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{"error_description":"The redirect_uri in the Authorization Request does not match any of the Client's pre-registered redirect_uris.","state":"98dff147-df25-497c-b90e-e5b0551fbcb1","error":"invalid_request_redirect_uri"}

#######################################################
TEST: requestAuthorizationCodeFail3
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/authorize HTTP/1.1
Host: jenkins-cb.gluu.org

response_type=code&client_id=%40%211111%210008%21INVALID_VALUE&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=9cdc0ea6-bf75-4570-980b-c455afb70f5e

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 401
Connection: Keep-Alive
Content-Length: 175
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:14:02 GMT
Keep-Alive: timeout=5, max=100
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{"error_description":"The client is not authorized to request an access token using this method.","state":"9cdc0ea6-bf75-4570-980b-c455afb70f5e","error":"unauthorized_client"}

#######################################################
TEST: requestAuthorizationCodeFail4
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "application_type" : "web",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "sector_identifier_uri" : "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "client_name" : "oxAuth test app",
  "response_types" : [ "code", "id_token" ]
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1719
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:14:02 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=a76419dc-57c8-46ad-b301-412f7a254d97",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "21f5a6ab-44ce-4f8d-a67a-70ecfb4831e4",
    "client_id": "a76419dc-57c8-46ad-b301-412f7a254d97",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "user_name clientinfo uma_protection org_name phone oxd super_gluu_ro_session test openid profile email permission work_phone address",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "a3c5c1d7-72d3-472f-8ffa-082705979cb5",
    "client_id_issued_at": 1575530042,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": [
        "refresh_token",
        "authorization_code",
        "implicit"
    ],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616442,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": [
        "code",
        "token",
        "id_token"
    ]
}

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
GET /oxauth/restv1/register?{ } HTTP/1.1
Host: jenkins-cb.gluu.org
Authorization: Bearer 21f5a6ab-44ce-4f8d-a67a-70ecfb4831e4

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1719
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:14:02 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=a76419dc-57c8-46ad-b301-412f7a254d97",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "21f5a6ab-44ce-4f8d-a67a-70ecfb4831e4",
    "client_id": "a76419dc-57c8-46ad-b301-412f7a254d97",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "user_name clientinfo uma_protection org_name phone oxd super_gluu_ro_session test openid profile email permission work_phone address",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "a3c5c1d7-72d3-472f-8ffa-082705979cb5",
    "client_id_issued_at": 1575530042,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": [
        "refresh_token",
        "authorization_code",
        "implicit"
    ],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616442,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": [
        "code",
        "token",
        "id_token"
    ]
}

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/authorize HTTP/1.1
Host: jenkins-cb.gluu.org

response_type=code+id_token&client_id=a76419dc-57c8-46ad-b301-412f7a254d97&scope=openid+email&redirect_uri=https%3A%2F%2Fevil.com%2FoxLicenceAdmin&nonce=23dd1f30-5640-419c-8981-955d65c0ba1a

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 400
Connection: close
Content-Length: 173
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:14:02 GMT
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{"error_description":"The redirect_uri in the Authorization Request does not match any of the Client's pre-registered redirect_uris.","error":"invalid_request_redirect_uri"}

#######################################################
TEST: requestAuthorizationCodeIdToken
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "application_type" : "web",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "sector_identifier_uri" : "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "client_name" : "oxAuth test app",
  "response_types" : [ "code", "id_token" ]
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1719
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:14:03 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=063bb2a5-cb26-4264-8bbc-d996972fb5de",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "bc69dc9e-e944-4c07-b241-2e3823a01b25",
    "client_id": "063bb2a5-cb26-4264-8bbc-d996972fb5de",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "phone oxd super_gluu_ro_session test openid profile email permission work_phone address user_name clientinfo uma_protection org_name",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "1f9ee567-d4d9-49cc-b2d3-8dc616298267",
    "client_id_issued_at": 1575530043,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": [
        "refresh_token",
        "authorization_code",
        "implicit"
    ],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616443,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": [
        "code",
        "token",
        "id_token"
    ]
}

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
GET /oxauth/restv1/register?{ } HTTP/1.1
Host: jenkins-cb.gluu.org
Authorization: Bearer bc69dc9e-e944-4c07-b241-2e3823a01b25

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1719
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:14:03 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=063bb2a5-cb26-4264-8bbc-d996972fb5de",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "bc69dc9e-e944-4c07-b241-2e3823a01b25",
    "client_id": "063bb2a5-cb26-4264-8bbc-d996972fb5de",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "phone oxd super_gluu_ro_session test openid profile email permission work_phone address user_name clientinfo uma_protection org_name",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "1f9ee567-d4d9-49cc-b2d3-8dc616298267",
    "client_id_issued_at": 1575530043,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": [
        "refresh_token",
        "authorization_code",
        "implicit"
    ],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616443,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": [
        "code",
        "token",
        "id_token"
    ]
}

authenticateResourceOwnerAndGrantAccess: Cleaning cookies
authenticateResourceOwnerAndGrantAccess: authorizationRequestUrl:https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=code+id_token&client_id=063bb2a5-cb26-4264-8bbc-d996972fb5de&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=e1aa38ab-df89-4653-bdcd-6cbcffbcf818&nonce=b7ee7622-394b-4c68-b143-7e32531eacbc
authenticateResourceOwnerAndGrantAccess: sessionState:419f2d668f67bc625d8aabb9b668c4f0d2721de874e0bb46ff636e7fe9bed7de.807e7655-4005-450b-924f-7526eb173751
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=code+id_token&client_id=063bb2a5-cb26-4264-8bbc-d996972fb5de&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=e1aa38ab-df89-4653-bdcd-6cbcffbcf818&nonce=b7ee7622-394b-4c68-b143-7e32531eacbc

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm#code=a1dbe307-6c83-4f8f-b5a4-524f47de1a87&scope=address+openid+profile+email&id_token=eyJraWQiOiI5MjA3MzdmZC1mYWQ3LTQxNzAtOWU0OS00Y2Q2Yjc1N2EyNTRfc2lnX3JzMjU2IiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJhdWQiOiIwNjNiYjJhNS1jYjI2LTQyNjQtOGJiYy1kOTk2OTcyZmI1ZGUiLCJjX2hhc2giOiJVNTNWZTNPYjZUSGlUTHhKVTRNN0VRIiwic3ViIjoiYUhIcUlIcFJTOHNMUXRDR1EyQXRJWUxVY09WVTB3cVBsOFl0NFN5RE1rOCIsInNfaGFzaCI6Ik5tZkppQnA5REVYSE1nYlZpTjF6SmciLCJhdXRoX3RpbWUiOjE1NzU1MzAwNDQsImlzcyI6Imh0dHBzOi8vamVua2lucy1jYi5nbHV1Lm9yZyIsImV4cCI6MTU3NTUzMzY0NywiaWF0IjoxNTc1NTMwMDQ3LCJub25jZSI6ImI3ZWU3NjIyLTM5NGItNGM2OC1iMTQzLTdlMzI1MzFlYWNiYyIsIm94T3BlbklEQ29ubmVjdFZlcnNpb24iOiJvcGVuaWRjb25uZWN0LTEuMCJ9.bygRLrAO-jfKcxNwwaePUzGicKVmxd5DEM6hVrrS2_M5Z30A1D8Fc4mMyL4wFcbTmoqUpzK73CHWRPOypGNHjKFTT3c5hmF7A3-pZhssSb4zpTJJH_j4n6euarbzDC5f06mIoA0Z-XnUnlObPFPzVQMfMgntM-b1xMko5DyWqFQ-IsBYu6UGS3X4jjEkbLIhuvfI0sTJ5dGNwSu2Ky4VReZMQ3o7rQ_oa5tQEJVfkY0UG_HTbtA5vQIhlMQPNy7S6A72WEiZphrPyH8oARjky4oEaiBkoAn1-MqDnQzL3QpV9-Shofi07ov_u21q-CFRSPNAnrZACSamwK_V4yfi8Q&session_id=dd7819ca-89b0-40b8-801c-b6244faa4231&state=e1aa38ab-df89-4653-bdcd-6cbcffbcf818&session_state=419f2d668f67bc625d8aabb9b668c4f0d2721de874e0bb46ff636e7fe9bed7de.807e7655-4005-450b-924f-7526eb173751

#######################################################
TEST: requestAuthorizationCodeIdTokenUserBasicAuth
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "application_type" : "web",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "sector_identifier_uri" : "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "client_name" : "oxAuth test app",
  "response_types" : [ "code", "id_token" ]
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1719
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:14:07 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=5f1cea40-e455-491e-8b88-b9f048ea6d37",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "93df6b09-c543-4e1a-87ff-3a10deaaaa4e",
    "client_id": "5f1cea40-e455-491e-8b88-b9f048ea6d37",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "super_gluu_ro_session test openid profile email permission work_phone address user_name clientinfo uma_protection org_name phone oxd",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "62e4f994-1328-4e20-9ca3-fba4de89c5e4",
    "client_id_issued_at": 1575530047,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": [
        "refresh_token",
        "authorization_code",
        "implicit"
    ],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616447,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": [
        "code",
        "token",
        "id_token"
    ]
}

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
GET /oxauth/restv1/register?{ } HTTP/1.1
Host: jenkins-cb.gluu.org
Authorization: Bearer 93df6b09-c543-4e1a-87ff-3a10deaaaa4e

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1719
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:14:07 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=5f1cea40-e455-491e-8b88-b9f048ea6d37",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "93df6b09-c543-4e1a-87ff-3a10deaaaa4e",
    "client_id": "5f1cea40-e455-491e-8b88-b9f048ea6d37",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "super_gluu_ro_session test openid profile email permission work_phone address user_name clientinfo uma_protection org_name phone oxd",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "62e4f994-1328-4e20-9ca3-fba4de89c5e4",
    "client_id_issued_at": 1575530047,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": [
        "refresh_token",
        "authorization_code",
        "implicit"
    ],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616447,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": [
        "code",
        "token",
        "id_token"
    ]
}

authenticateResourceOwnerAndGrantAccess: Cleaning cookies
authenticateResourceOwnerAndGrantAccess: authorizationRequestUrl:https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=code+id_token&client_id=5f1cea40-e455-491e-8b88-b9f048ea6d37&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=6a015531-256e-4ff5-a886-7af2213b01e8&nonce=501712c3-77e1-4bc8-a8b6-12b4d59c4338
authenticateResourceOwnerAndGrantAccess: sessionState:e38fa53377d4ccf43927983d5f5e7ecb1987d8153c09b32b77cd07d11a09e6da.e2a61932-1d6b-4ca7-b25f-4d53be290488
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=code+id_token&client_id=5f1cea40-e455-491e-8b88-b9f048ea6d37&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=6a015531-256e-4ff5-a886-7af2213b01e8&nonce=501712c3-77e1-4bc8-a8b6-12b4d59c4338

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm#code=773e4cff-13b6-4fca-8d02-1715cc13afd8&scope=address+openid+profile+email&id_token=eyJraWQiOiI5MjA3MzdmZC1mYWQ3LTQxNzAtOWU0OS00Y2Q2Yjc1N2EyNTRfc2lnX3JzMjU2IiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJhdWQiOiI1ZjFjZWE0MC1lNDU1LTQ5MWUtOGI4OC1iOWYwNDhlYTZkMzciLCJjX2hhc2giOiJleGpVTER4X04xakpmeWM1YkdSZF93Iiwic3ViIjoiYUhIcUlIcFJTOHNMUXRDR1EyQXRJWUxVY09WVTB3cVBsOFl0NFN5RE1rOCIsInNfaGFzaCI6IkJJR215X00yX0xnaUVOdHhxanZqRXciLCJhdXRoX3RpbWUiOjE1NzU1MzAwNDgsImlzcyI6Imh0dHBzOi8vamVua2lucy1jYi5nbHV1Lm9yZyIsImV4cCI6MTU3NTUzMzY1MCwiaWF0IjoxNTc1NTMwMDUwLCJub25jZSI6IjUwMTcxMmMzLTc3ZTEtNGJjOC1hOGI2LTEyYjRkNTljNDMzOCIsIm94T3BlbklEQ29ubmVjdFZlcnNpb24iOiJvcGVuaWRjb25uZWN0LTEuMCJ9.G2i_VsColJ0Va3Noynp7K7A68RjVBXAnaVsBy87YFjsGfBOaJctGSvKIdDiXyBsntSKNEr6-azG1SJYn_I1UUyEyQa6BUTVSwyusxntAH3WLkcoRrxKrsfeyXnWsmpYQOlmXj6kiviyVeT1-uk2mSWryUdOZI60u6BWkN4Pgeze0CMexgv9eBh18mywtlZntV4SAvCmESLcAPxu3KadXk5vKRUisYHADfNfhGxdoCiQk77qLDB9Fcc2SA0Fl2qLIyJFVfxvw3E5oxcW4CSxjsbOoE5MLMfK_W822AltNbP9xWG7SsJTk-xQ_okCZ3CIWpdZp1nKWqpxU9Dj_V4LtDA&session_id=6b29a2c5-d85a-4a23-94ba-b96d6e34443e&state=6a015531-256e-4ff5-a886-7af2213b01e8&session_state=e38fa53377d4ccf43927983d5f5e7ecb1987d8153c09b32b77cd07d11a09e6da.e2a61932-1d6b-4ca7-b25f-4d53be290488

#######################################################
TEST: requestAuthorizationCodeNoRedirection
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "application_type" : "web",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "sector_identifier_uri" : "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "client_name" : "oxAuth test app",
  "response_types" : [ "code" ]
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1648
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:14:10 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=506f1bf3-a41d-4a6e-8267-bcff1385426c",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "dc0fabcc-f28d-4e24-bfe2-cfbfb67bda5f",
    "client_id": "506f1bf3-a41d-4a6e-8267-bcff1385426c",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "user_name permission email profile test org_name uma_protection oxd address super_gluu_ro_session phone work_phone clientinfo openid",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "deb05c78-6290-4ab6-be38-0140f6aae008",
    "client_id_issued_at": 1575530050,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": [
        "refresh_token",
        "authorization_code"
    ],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616450,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": ["code"]
}

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
GET /oxauth/restv1/register?{ } HTTP/1.1
Host: jenkins-cb.gluu.org
Authorization: Bearer dc0fabcc-f28d-4e24-bfe2-cfbfb67bda5f

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1648
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:14:10 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=506f1bf3-a41d-4a6e-8267-bcff1385426c",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "dc0fabcc-f28d-4e24-bfe2-cfbfb67bda5f",
    "client_id": "506f1bf3-a41d-4a6e-8267-bcff1385426c",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "user_name permission email profile test org_name uma_protection oxd address super_gluu_ro_session phone work_phone clientinfo openid",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "deb05c78-6290-4ab6-be38-0140f6aae008",
    "client_id_issued_at": 1575530050,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": [
        "refresh_token",
        "authorization_code"
    ],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616450,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": ["code"]
}

authenticateResourceOwnerAndGrantAccess: Cleaning cookies
authenticateResourceOwnerAndGrantAccess: authorizationRequestUrl:https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=code&client_id=506f1bf3-a41d-4a6e-8267-bcff1385426c&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=a4488d33-bf62-4803-afaa-143db773a9c2
authenticateResourceOwnerAndGrantAccess: sessionState:be4a42b80460090d9406d3b3d1aec4b883b38b8040795cd2123dc42717926a94.b8dd1a82-a9df-4734-b87b-7adf5c7d6c62
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=code&client_id=506f1bf3-a41d-4a6e-8267-bcff1385426c&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=a4488d33-bf62-4803-afaa-143db773a9c2

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm?code=dd927199-4e49-4955-8e2a-b9a37cded7ba&scope=address+openid+profile+email&session_id=c2b67b31-70ec-43db-95f1-b843c87eab2b&state=a4488d33-bf62-4803-afaa-143db773a9c2&session_state=be4a42b80460090d9406d3b3d1aec4b883b38b8040795cd2123dc42717926a94.b8dd1a82-a9df-4734-b87b-7adf5c7d6c62

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/authorize HTTP/1.1
Host: jenkins-cb.gluu.org
X-Gluu-NoRedirect: true

response_type=code&client_id=506f1bf3-a41d-4a6e-8267-bcff1385426c&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=a4488d33-bf62-4803-afaa-143db773a9c2

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------


#######################################################
TEST: requestAuthorizationCodeUserBasicAuth
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "application_type" : "web",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "sector_identifier_uri" : "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "client_name" : "oxAuth test app",
  "response_types" : [ "code" ]
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1648
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:14:14 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=b897c246-6e71-4b63-afbd-260e59e682a4",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "fa050a49-89e6-4882-b952-97a9369742b9",
    "client_id": "b897c246-6e71-4b63-afbd-260e59e682a4",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "oxd org_name address openid uma_protection super_gluu_ro_session permission clientinfo user_name test profile work_phone email phone",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "00dcc645-c6f9-470b-b42d-88093a776741",
    "client_id_issued_at": 1575530054,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": [
        "refresh_token",
        "authorization_code"
    ],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616454,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": ["code"]
}

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
GET /oxauth/restv1/register?{ } HTTP/1.1
Host: jenkins-cb.gluu.org
Authorization: Bearer fa050a49-89e6-4882-b952-97a9369742b9

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1648
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:14:14 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=b897c246-6e71-4b63-afbd-260e59e682a4",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "fa050a49-89e6-4882-b952-97a9369742b9",
    "client_id": "b897c246-6e71-4b63-afbd-260e59e682a4",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "oxd org_name address openid uma_protection super_gluu_ro_session permission clientinfo user_name test profile work_phone email phone",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "00dcc645-c6f9-470b-b42d-88093a776741",
    "client_id_issued_at": 1575530054,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": [
        "refresh_token",
        "authorization_code"
    ],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616454,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": ["code"]
}

authenticateResourceOwnerAndGrantAccess: Cleaning cookies
authenticateResourceOwnerAndGrantAccess: authorizationRequestUrl:https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=code&client_id=b897c246-6e71-4b63-afbd-260e59e682a4&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=ff173cac-e6ec-4bd6-84fb-98851ef98e70
authenticateResourceOwnerAndGrantAccess: sessionState:95f644923d750e140d9f9ea58ddd96287657f039b2115235ffe9b349089ee113.523c2a27-a50c-4347-858b-d3d3d8252ba6
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=code&client_id=b897c246-6e71-4b63-afbd-260e59e682a4&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=ff173cac-e6ec-4bd6-84fb-98851ef98e70

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm?code=e71648f4-8002-4b40-b0f6-9f192d1ea240&scope=address+openid+profile+email&session_id=a52d0597-f42c-410b-af4d-c435d7f8e5bd&state=ff173cac-e6ec-4bd6-84fb-98851ef98e70&session_state=95f644923d750e140d9f9ea58ddd96287657f039b2115235ffe9b349089ee113.523c2a27-a50c-4347-858b-d3d3d8252ba6

#######################################################
TEST: requestAuthorizationCodeWithoutRedirectUri
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "application_type" : "web",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm" ],
  "client_name" : "oxAuth test app"
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1388
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:14:18 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=45b3c3f9-890a-46d4-8037-25ae88482bba",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "bb08c63e-d250-4bc8-93d1-eaced866d2cf",
    "client_id": "45b3c3f9-890a-46d4-8037-25ae88482bba",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "profile openid org_name work_phone phone user_name uma_protection clientinfo address oxd test super_gluu_ro_session email permission",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "308c1ed6-82ea-43cd-87c6-00136ac72ecd",
    "client_id_issued_at": 1575530058,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": [
        "refresh_token",
        "authorization_code"
    ],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": ["https://jenkins-cb.gluu.org/oxauth-rp/home.htm"],
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616458,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": ["code"]
}

authenticateResourceOwnerAndGrantAccess: Cleaning cookies
authenticateResourceOwnerAndGrantAccess: authorizationRequestUrl:https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=code&client_id=45b3c3f9-890a-46d4-8037-25ae88482bba&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=c6e7518a-eca5-43b0-ac29-5128480a876f
authenticateResourceOwnerAndGrantAccess: sessionState:2ff0de5a2215b8fd55a82878333ec82101d11af5de66ababcc3bf88f9079210c.8fdc0158-9c95-4d8f-9ba3-0cf9eec5fe0e
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=code&client_id=45b3c3f9-890a-46d4-8037-25ae88482bba&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=c6e7518a-eca5-43b0-ac29-5128480a876f

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm?code=adf8b409-d552-4577-948f-c3ed17b7c2d6&scope=address+openid+profile+email&session_id=a3640473-be11-411c-8c9f-9d726d271283&state=c6e7518a-eca5-43b0-ac29-5128480a876f&session_state=2ff0de5a2215b8fd55a82878333ec82101d11af5de66ababcc3bf88f9079210c.8fdc0158-9c95-4d8f-9ba3-0cf9eec5fe0e

#######################################################
TEST: requestAuthorizationCodeWithoutRedirectUriFail
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "oxAuthTrustedClient" : "true",
  "application_type" : "web",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "sector_identifier_uri" : "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "client_name" : "oxAuth test app"
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1648
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:14:21 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=23850d95-0f40-42de-b006-b4ac6ae63701",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "6dc221e7-becb-4d16-b39c-8288a72548b3",
    "client_id": "23850d95-0f40-42de-b006-b4ac6ae63701",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "uma_protection clientinfo address oxd test super_gluu_ro_session email permission profile openid org_name work_phone phone user_name",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "f9cc16ac-3b9e-46fd-818a-c74e9d0cafaa",
    "client_id_issued_at": 1575530061,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": [
        "refresh_token",
        "authorization_code"
    ],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616461,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": ["code"]
}

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/authorize HTTP/1.1
Host: jenkins-cb.gluu.org
Authorization: Basic dGVzdF91c2VyOnRlc3RfdXNlcl9wYXNzd29yZA==

response_type=code&client_id=23850d95-0f40-42de-b006-b4ac6ae63701&scope=openid+profile+address+email&state=36c29bf6-85dd-450b-aa88-093c30013163&prompt=none

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 400
Connection: close
Content-Length: 220
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:14:21 GMT
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{"error_description":"The redirect_uri in the Authorization Request does not match any of the Client's pre-registered redirect_uris.","state":"36c29bf6-85dd-450b-aa88-093c30013163","error":"invalid_request_redirect_uri"}

#######################################################
TEST: requestAuthorizationCodeWithoutRedirectUriUserBasicAuth
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "oxAuthTrustedClient" : "true",
  "subject_type" : "public",
  "application_type" : "web",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm" ],
  "client_name" : "oxAuth test app"
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1386
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:14:22 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=f1e3f892-e085-4953-9d69-5f19a3957566",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "c777d3d1-2b24-42e3-8dfb-84956bf767af",
    "client_id": "f1e3f892-e085-4953-9d69-5f19a3957566",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "test super_gluu_ro_session email permission profile openid org_name work_phone phone user_name uma_protection clientinfo address oxd",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "965dc016-24f8-4aea-bc1f-ca956dd0fbc3",
    "client_id_issued_at": 1575530062,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": [
        "refresh_token",
        "authorization_code"
    ],
    "subject_type": "public",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": ["https://jenkins-cb.gluu.org/oxauth-rp/home.htm"],
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616462,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": ["code"]
}

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/authorize HTTP/1.1
Host: jenkins-cb.gluu.org
Authorization: Basic dGVzdF91c2VyOnRlc3RfdXNlcl9wYXNzd29yZA==

response_type=code&client_id=f1e3f892-e085-4953-9d69-5f19a3957566&scope=openid+profile+address+email&state=c3d8dd29-34dd-4956-9749-b3549a19ca97&prompt=none

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302
Connection: Keep-Alive
Content-Length: 0
Date: Thu, 05 Dec 2019 07:14:22 GMT
Keep-Alive: timeout=5, max=100
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm?code=7b21c27a-46ce-41b0-a093-1f754aff5567&scope=address+openid+profile+email&session_id=70eedf3f-8f39-4bfa-a067-7729369446f4&state=c3d8dd29-34dd-4956-9749-b3549a19ca97&session_state=9767a6c05b1758ba122d5697f4e4f60be3e0f4c110ae07e925fa93fc7cfdc71b.db779a60-743b-4cc2-991c-2148024743c6
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block



#######################################################
TEST: requestAuthorizationDenyAccessThenGrantAccess
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "application_type" : "web",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "sector_identifier_uri" : "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "client_name" : "oxAuth test app",
  "response_types" : [ "code" ]
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1648
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:14:23 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=2dbdb78e-4d5b-43c5-ab7e-57ec3150a719",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "93213733-561f-491f-b019-e7ac261409ba",
    "client_id": "2dbdb78e-4d5b-43c5-ab7e-57ec3150a719",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "openid uma_protection test email profile address phone work_phone permission super_gluu_ro_session org_name clientinfo oxd user_name",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "8ddb08fd-a3f0-4e83-b442-39c2b4c61a73",
    "client_id_issued_at": 1575530063,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": [
        "refresh_token",
        "authorization_code"
    ],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616463,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": ["code"]
}

authenticateResourceOwnerAndDenyAccess: authorizationRequestUrl:https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=code&client_id=2dbdb78e-4d5b-43c5-ab7e-57ec3150a719&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=024a147b-f3b4-4bd7-8c9c-7f42dee211c1&acr_values=basic
authenticateResourceOwnerAndDenyAccess: sessionId:3eded3c0-a233-4390-a9ee-9e8563a9832a
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=code&client_id=2dbdb78e-4d5b-43c5-ab7e-57ec3150a719&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=024a147b-f3b4-4bd7-8c9c-7f42dee211c1&acr_values=basic

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm?error=access_denied&error_description=The+resource+owner+or+authorization+server+denied+the+request.&state=024a147b-f3b4-4bd7-8c9c-7f42dee211c1

authorizationRequestAndDenyAccess: authorizationRequestUrl:https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=code&client_id=2dbdb78e-4d5b-43c5-ab7e-57ec3150a719&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=396cb27a-f60c-4ccb-87ad-9cfa961e5f4c&acr_values=basic&session_id=3eded3c0-a233-4390-a9ee-9e8563a9832a
authorizationRequestAndDenyAccess: sessionState:null
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=code&client_id=2dbdb78e-4d5b-43c5-ab7e-57ec3150a719&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=396cb27a-f60c-4ccb-87ad-9cfa961e5f4c&acr_values=basic&session_id=3eded3c0-a233-4390-a9ee-9e8563a9832a

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm?error=access_denied&error_description=The+resource+owner+or+authorization+server+denied+the+request.&state=396cb27a-f60c-4ccb-87ad-9cfa961e5f4c

authorizationRequestAndGrantAccess: authorizationRequestUrl:https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=code&client_id=2dbdb78e-4d5b-43c5-ab7e-57ec3150a719&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=bf70e8bc-2ba4-44d4-a553-9e96fd0c890a&acr_values=basic&session_id=3eded3c0-a233-4390-a9ee-9e8563a9832a
authorizationRequestAndGrantAccess: sessionState:f364e690c396491fdc48611ca1f2113ba52c80c7500599ac66d341afc043caec.0e33b283-689b-417f-bcaa-d93bdca90b3f
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=code&client_id=2dbdb78e-4d5b-43c5-ab7e-57ec3150a719&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=bf70e8bc-2ba4-44d4-a553-9e96fd0c890a&acr_values=basic&session_id=3eded3c0-a233-4390-a9ee-9e8563a9832a

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm?code=dd87ecb9-6eb8-41ee-b914-7ea9885f5f1c&acr_values=basic&scope=address+openid+profile+email&session_id=3eded3c0-a233-4390-a9ee-9e8563a9832a&state=396cb27a-f60c-4ccb-87ad-9cfa961e5f4c&session_state=f364e690c396491fdc48611ca1f2113ba52c80c7500599ac66d341afc043caec.0e33b283-689b-417f-bcaa-d93bdca90b3f

#######################################################
TEST: requestAuthorizationIdToken
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "application_type" : "web",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "sector_identifier_uri" : "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "client_name" : "oxAuth test app",
  "response_types" : [ "id_token" ]
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1634
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:14:31 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=ede853ae-6521-46e1-bc02-ef356d6637e4",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "79a4bfa8-7202-4800-bb50-e2d4969d9647",
    "client_id": "ede853ae-6521-46e1-bc02-ef356d6637e4",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "email work_phone clientinfo openid test address super_gluu_ro_session oxd org_name user_name phone permission profile uma_protection",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "dfbe932d-145a-4d79-92ab-96a7f2ab4fa7",
    "client_id_issued_at": 1575530071,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": ["implicit"],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616471,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": [
        "token",
        "id_token"
    ]
}

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
GET /oxauth/restv1/register?{ } HTTP/1.1
Host: jenkins-cb.gluu.org
Authorization: Bearer 79a4bfa8-7202-4800-bb50-e2d4969d9647

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1634
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:14:31 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=ede853ae-6521-46e1-bc02-ef356d6637e4",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "79a4bfa8-7202-4800-bb50-e2d4969d9647",
    "client_id": "ede853ae-6521-46e1-bc02-ef356d6637e4",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "email work_phone clientinfo openid test address super_gluu_ro_session oxd org_name user_name phone permission profile uma_protection",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "dfbe932d-145a-4d79-92ab-96a7f2ab4fa7",
    "client_id_issued_at": 1575530071,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": ["implicit"],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616471,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": [
        "token",
        "id_token"
    ]
}

authenticateResourceOwnerAndGrantAccess: Cleaning cookies
authenticateResourceOwnerAndGrantAccess: authorizationRequestUrl:https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=id_token&client_id=ede853ae-6521-46e1-bc02-ef356d6637e4&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=8c38e483-6b37-47ae-8e7a-566e6a6b3b65&nonce=169efab0-b303-438a-bda2-821f94ca3429
authenticateResourceOwnerAndGrantAccess: sessionState:70289491828c0b3d33318a81bad552df90f1ec52c9787aa65eb5ff1938b2eaaf.c034d85a-01be-4bdb-af31-9f7e3ad04383
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=id_token&client_id=ede853ae-6521-46e1-bc02-ef356d6637e4&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=8c38e483-6b37-47ae-8e7a-566e6a6b3b65&nonce=169efab0-b303-438a-bda2-821f94ca3429

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm#scope=address+openid+profile+email&id_token=eyJraWQiOiI5MjA3MzdmZC1mYWQ3LTQxNzAtOWU0OS00Y2Q2Yjc1N2EyNTRfc2lnX3JzMjU2IiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJhdWQiOiJlZGU4NTNhZS02NTIxLTQ2ZTEtYmMwMi1lZjM1NmQ2NjM3ZTQiLCJzdWIiOiJhSEhxSUhwUlM4c0xRdENHUTJBdElZTFVjT1ZVMHdxUGw4WXQ0U3lETWs4Iiwic19oYXNoIjoiZ2VGRzgyUWNURjVDOTNTTE5kc3ZfUSIsImF1dGhfdGltZSI6MTU3NTUzMDA3MiwiaXNzIjoiaHR0cHM6Ly9qZW5raW5zLWNiLmdsdXUub3JnIiwiZXhwIjoxNTc1NTMzNjc1LCJpYXQiOjE1NzU1MzAwNzUsIm5vbmNlIjoiMTY5ZWZhYjAtYjMwMy00MzhhLWJkYTItODIxZjk0Y2EzNDI5Iiwib3hPcGVuSURDb25uZWN0VmVyc2lvbiI6Im9wZW5pZGNvbm5lY3QtMS4wIn0.Kcs9r47rf6jrO_Whn2S5qGhls7OzJpenkByXahne-qLIxpkpqsyUWxmgjxNC3tHS6dEUDzGm-KFj_0YrHsJkCZSBcxZPrgOe-ChdHoeJQbeOMHG15nq6KfFtfLkCPvC9eFbbsJhVFVs707q8_CysHhbKrRcCdsUEzIo8tMZ-3anYt-xxnRgy2GhZAKhCqxceULas7U5Y4K1gERPkGad3pjhoEB1tZr0pz4Fit5Gd_sN9F7yzBGjASTmSpVKrWUD0DE7JkJZ7fyuQO35gPwT6kA1DDhuh1yrnh6xcnzKo2yW6CtLGEnDlMvgheeNAsccqOH0jmxI83bxqLHDtCXeSUw&session_id=2920637a-0997-45ba-9cec-7852633120b7&state=8c38e483-6b37-47ae-8e7a-566e6a6b3b65&session_state=70289491828c0b3d33318a81bad552df90f1ec52c9787aa65eb5ff1938b2eaaf.c034d85a-01be-4bdb-af31-9f7e3ad04383

#######################################################
TEST: requestAuthorizationIdTokenUserBasicAuth
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "application_type" : "web",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "sector_identifier_uri" : "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "client_name" : "oxAuth test app",
  "response_types" : [ "id_token" ]
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1634
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:14:35 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=ce3ef284-3931-42e0-a6e8-7e2911ac7c22",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "b2894237-73c6-4fc0-a1dc-3a55547f3657",
    "client_id": "ce3ef284-3931-42e0-a6e8-7e2911ac7c22",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "org_name work_phone address user_name super_gluu_ro_session test email profile oxd permission phone clientinfo openid uma_protection",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "6faee249-336e-4aed-99dd-255288b7e4ba",
    "client_id_issued_at": 1575530075,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": ["implicit"],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616475,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": [
        "token",
        "id_token"
    ]
}

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
GET /oxauth/restv1/register?{ } HTTP/1.1
Host: jenkins-cb.gluu.org
Authorization: Bearer b2894237-73c6-4fc0-a1dc-3a55547f3657

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1634
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:14:35 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=ce3ef284-3931-42e0-a6e8-7e2911ac7c22",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "b2894237-73c6-4fc0-a1dc-3a55547f3657",
    "client_id": "ce3ef284-3931-42e0-a6e8-7e2911ac7c22",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "org_name work_phone address user_name super_gluu_ro_session test email profile oxd permission phone clientinfo openid uma_protection",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "6faee249-336e-4aed-99dd-255288b7e4ba",
    "client_id_issued_at": 1575530075,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": ["implicit"],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616475,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": [
        "token",
        "id_token"
    ]
}

authenticateResourceOwnerAndGrantAccess: Cleaning cookies
authenticateResourceOwnerAndGrantAccess: authorizationRequestUrl:https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=id_token&client_id=ce3ef284-3931-42e0-a6e8-7e2911ac7c22&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=aae3cf4e-7790-4437-a6e8-2f1d9729e446&nonce=fa9f59bc-7b9a-437c-9d2d-5827b1b21666
authenticateResourceOwnerAndGrantAccess: sessionState:85d7a61021263325b29526bbd5682e3d33ee7164a2ab7ede1bf252d5e7ff5cbc.992e1d91-199f-41a2-94c4-5b3b9798fa17
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=id_token&client_id=ce3ef284-3931-42e0-a6e8-7e2911ac7c22&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=aae3cf4e-7790-4437-a6e8-2f1d9729e446&nonce=fa9f59bc-7b9a-437c-9d2d-5827b1b21666

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm#scope=address+openid+profile+email&id_token=eyJraWQiOiI5MjA3MzdmZC1mYWQ3LTQxNzAtOWU0OS00Y2Q2Yjc1N2EyNTRfc2lnX3JzMjU2IiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJhdWQiOiJjZTNlZjI4NC0zOTMxLTQyZTAtYTZlOC03ZTI5MTFhYzdjMjIiLCJzdWIiOiJhSEhxSUhwUlM4c0xRdENHUTJBdElZTFVjT1ZVMHdxUGw4WXQ0U3lETWs4Iiwic19oYXNoIjoiX3Q1NnB2cXZ2RTZ5cWVoRmhOSHU4dyIsImF1dGhfdGltZSI6MTU3NTUzMDA3NiwiaXNzIjoiaHR0cHM6Ly9qZW5raW5zLWNiLmdsdXUub3JnIiwiZXhwIjoxNTc1NTMzNjc4LCJpYXQiOjE1NzU1MzAwNzgsIm5vbmNlIjoiZmE5ZjU5YmMtN2I5YS00MzdjLTlkMmQtNTgyN2IxYjIxNjY2Iiwib3hPcGVuSURDb25uZWN0VmVyc2lvbiI6Im9wZW5pZGNvbm5lY3QtMS4wIn0.lIIG9e4AeLqXum0FV2yKt8cjdqE19bIp6iEsKkzuZGLxIVzfQ3zfhOP5RdhSYVP_XSGaz7ycej71xIgR9S1E36HCu340jBrZ8TcWFRb4Sf6rT129IqMmo-udMcbETfcf_YUY5ngubsD8SGCxkVJ3EGAK00TNXJmFWyTcWfqSk4SSscDnlQQASp6yfAmhlLMuUOYZlqblr5DRkUHYg7HSe7Op6kpLOJFBCbgrj7xsLggh0tav-vB79tPxZ-ssSM_an1pX9Eb3gyWwqMVCPkXf38pvqsuez1xT6YPdPpUEJPO5hymuaNGZhHG5Z2915I1The8jhBtbjb6aJBstC1JE6Q&session_id=d9e04a9e-637c-42be-bcea-3d0a5699ef83&state=aae3cf4e-7790-4437-a6e8-2f1d9729e446&session_state=85d7a61021263325b29526bbd5682e3d33ee7164a2ab7ede1bf252d5e7ff5cbc.992e1d91-199f-41a2-94c4-5b3b9798fa17

#######################################################
TEST: requestAuthorizationObjectUILocales
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "application_type" : "web",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "sector_identifier_uri" : "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "client_name" : "oxAuth test app",
  "response_types" : [ "token", "id_token" ]
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1634
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:14:39 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=c6dae617-b609-4a7c-9cb1-abc5b089b2b2",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "6051b000-2b4f-4ac6-bb05-c1b268c6c38e",
    "client_id": "c6dae617-b609-4a7c-9cb1-abc5b089b2b2",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "user_name clientinfo profile super_gluu_ro_session oxd uma_protection email org_name work_phone test address permission phone openid",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "bf7f8146-fcf7-4a5a-859b-e4afb8b49a13",
    "client_id_issued_at": 1575530079,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": ["implicit"],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616479,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": [
        "token",
        "id_token"
    ]
}

authenticateResourceOwnerAndGrantAccess: Cleaning cookies
authenticateResourceOwnerAndGrantAccess: authorizationRequestUrl:https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=token+id_token&client_id=c6dae617-b609-4a7c-9cb1-abc5b089b2b2&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=b16a1fc7-e406-4c94-9b0f-ce4874896ebc&nonce=431eeac5-bb2e-4a81-b164-d32b03ef480f&ui_locales=es&request=ewogICJ0eXAiIDogIkpXVCIsCiAgImFsZyIgOiAiSFMyNTYiCn0.ewogICJ1aV9sb2NhbGVzIiA6IFsgImVzIiBdLAogICJzY29wZSIgOiBbICJvcGVuaWQiLCAicHJvZmlsZSIsICJhZGRyZXNzIiwgImVtYWlsIiBdLAogICJjbGFpbXMiIDogewogICAgImlkX3Rva2VuIiA6IHsKICAgICAgIm1heF9hZ2UiIDogODY0MDAsCiAgICAgICJhY3IiIDogewogICAgICAgICJ2YWx1ZXMiIDogWyAiMiIgXQogICAgICB9LAogICAgICAiYXV0aF90aW1lIiA6IG51bGwKICAgIH0sCiAgICAidXNlcmluZm8iIDogewogICAgICAiZW1haWxfdmVyaWZpZWQiIDogbnVsbCwKICAgICAgIm5hbWUiIDogbnVsbCwKICAgICAgIm5pY2tuYW1lIiA6IHsKICAgICAgICAiZXNzZW50aWFsIiA6IGZhbHNlCiAgICAgIH0sCiAgICAgICJlbWFpbCIgOiBudWxsLAogICAgICAicGljdHVyZSIgOiB7CiAgICAgICAgImVzc2VudGlhbCIgOiBmYWxzZQogICAgICB9CiAgICB9CiAgfSwKICAicmVzcG9uc2VfdHlwZSIgOiBbICJ0b2tlbiIsICJpZF90b2tlbiIgXSwKICAicmVkaXJlY3RfdXJpIiA6ICJodHRwcyUzQSUyRiUyRmplbmtpbnMtY2IuZ2x1dS5vcmclMkZveGF1dGgtcnAlMkZob21lLmh0bSIsCiAgInN0YXRlIiA6ICJiMTZhMWZjNy1lNDA2LTRjOTQtOWIwZi1jZTQ4NzQ4OTZlYmMiLAogICJub25jZSIgOiAiNDMxZWVhYzUtYmIyZS00YTgxLWIxNjQtZDMyYjAzZWY0ODBmIiwKICAiY2xpZW50X2lkIiA6ICJjNmRhZTYxNy1iNjA5LTRhN2MtOWNiMS1hYmM1YjA4OWIyYjIiCn0.pdhPnowLvJrTWGXw2C8KzCoF7OnYpNBhgVVK3yk4Q58
authenticateResourceOwnerAndGrantAccess: sessionState:d4527642e6463a12570b9579aea1f7a510af826fcb006751eb6b3ec5f2fcf52c.b4bc0ef0-d3bd-445b-8abb-4e30851cf68e
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=token+id_token&client_id=c6dae617-b609-4a7c-9cb1-abc5b089b2b2&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=b16a1fc7-e406-4c94-9b0f-ce4874896ebc&nonce=431eeac5-bb2e-4a81-b164-d32b03ef480f&ui_locales=es&request=ewogICJ0eXAiIDogIkpXVCIsCiAgImFsZyIgOiAiSFMyNTYiCn0.ewogICJ1aV9sb2NhbGVzIiA6IFsgImVzIiBdLAogICJzY29wZSIgOiBbICJvcGVuaWQiLCAicHJvZmlsZSIsICJhZGRyZXNzIiwgImVtYWlsIiBdLAogICJjbGFpbXMiIDogewogICAgImlkX3Rva2VuIiA6IHsKICAgICAgIm1heF9hZ2UiIDogODY0MDAsCiAgICAgICJhY3IiIDogewogICAgICAgICJ2YWx1ZXMiIDogWyAiMiIgXQogICAgICB9LAogICAgICAiYXV0aF90aW1lIiA6IG51bGwKICAgIH0sCiAgICAidXNlcmluZm8iIDogewogICAgICAiZW1haWxfdmVyaWZpZWQiIDogbnVsbCwKICAgICAgIm5hbWUiIDogbnVsbCwKICAgICAgIm5pY2tuYW1lIiA6IHsKICAgICAgICAiZXNzZW50aWFsIiA6IGZhbHNlCiAgICAgIH0sCiAgICAgICJlbWFpbCIgOiBudWxsLAogICAgICAicGljdHVyZSIgOiB7CiAgICAgICAgImVzc2VudGlhbCIgOiBmYWxzZQogICAgICB9CiAgICB9CiAgfSwKICAicmVzcG9uc2VfdHlwZSIgOiBbICJ0b2tlbiIsICJpZF90b2tlbiIgXSwKICAicmVkaXJlY3RfdXJpIiA6ICJodHRwcyUzQSUyRiUyRmplbmtpbnMtY2IuZ2x1dS5vcmclMkZveGF1dGgtcnAlMkZob21lLmh0bSIsCiAgInN0YXRlIiA6ICJiMTZhMWZjNy1lNDA2LTRjOTQtOWIwZi1jZTQ4NzQ4OTZlYmMiLAogICJub25jZSIgOiAiNDMxZWVhYzUtYmIyZS00YTgxLWIxNjQtZDMyYjAzZWY0ODBmIiwKICAiY2xpZW50X2lkIiA6ICJjNmRhZTYxNy1iNjA5LTRhN2MtOWNiMS1hYmM1YjA4OWIyYjIiCn0.pdhPnowLvJrTWGXw2C8KzCoF7OnYpNBhgVVK3yk4Q58

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm#access_token=bfdf909a-5ae0-4e27-a5da-3391b1885f81&scope=address+openid+profile+email&id_token=eyJraWQiOiI5MjA3MzdmZC1mYWQ3LTQxNzAtOWU0OS00Y2Q2Yjc1N2EyNTRfc2lnX3JzMjU2IiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJhdF9oYXNoIjoibjBXUEItTTYxakxQU216VUV0M0xjQSIsImF1ZCI6ImM2ZGFlNjE3LWI2MDktNGE3Yy05Y2IxLWFiYzViMDg5YjJiMiIsInN1YiI6ImFISHFJSHBSUzhzTFF0Q0dRMkF0SVlMVWNPVlUwd3FQbDhZdDRTeURNazgiLCJzX2hhc2giOiJLc3k5MVl1UFJ4RFlHR3RLR0tYTzhRIiwiYXV0aF90aW1lIjoxNTc1NTMwMDc5LCJpc3MiOiJodHRwczovL2plbmtpbnMtY2IuZ2x1dS5vcmciLCJleHAiOjE1NzU1MzM2ODIsImlhdCI6MTU3NTUzMDA4Miwibm9uY2UiOiI0MzFlZWFjNS1iYjJlLTRhODEtYjE2NC1kMzJiMDNlZjQ4MGYiLCJveE9wZW5JRENvbm5lY3RWZXJzaW9uIjoib3BlbmlkY29ubmVjdC0xLjAifQ.cKzD-CfVb4WV8MtL60unIgO4MAT_-3nsIjM9owzK-vOo-0vLe-QOqoucDh8i6rI4JbY4_JCao9CP76z-WzrFRh_hoe-tikISMY3kS6qxEL0BHDcdVyFYzSJrtmlTGSOhV3bXB8MzopzuVzT5u1W9w4dJJfxGBWPyYmFIOX1z4eztwWEmIUO_4ynYlpVmEogybsfe11UugJT8nkhtqVHbQZ4CnfqpFKINhvN4jjZGQlLmSqdn86-RMQRdvaPfesFsQ4lLtin2lhg4ME3mgmzk5SYrTVwMtjp-8-EFxlxXuj4zy451TZ85Zs2T8V9iVxF8EjsQFn2UwH5af3qIBCGQPQ&session_id=2703abd5-6cb8-47b2-a606-1e08513e007d&state=b16a1fc7-e406-4c94-9b0f-ce4874896ebc&token_type=bearer&session_state=d4527642e6463a12570b9579aea1f7a510af826fcb006751eb6b3ec5f2fcf52c.b4bc0ef0-d3bd-445b-8abb-4e30851cf68e&expires_in=299

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
GET /oxauth/restv1/userinfo HTTP/1.1
Host: jenkins-cb.gluu.org
Authorization: Bearer bfdf909a-5ae0-4e27-a5da-3391b1885f81

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store, private
Connection: Keep-Alive
Content-Length: 616
Content-Type: application/json;charset=utf-8
Date: Thu, 05 Dec 2019 07:14:42 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{"sub":"aHHqIHpRS8sLQtCGQ2AtIYLUcOVU0wqPl8Yt4SyDMk8","website":"http://www.gluu.org","zoneinfo":"America/Chicago","address":{"street_address":"621 East 6th Street","country":"US","locality":"Austin","region":"Texas"},"birthdate":"1983-01-06T01:05:14.000","email_verified":"true","gender":"Male","profile":"http://www.mywebsite.com/profile","preferred_username":"user","given_name":"Test","middle_name":"User","locale":"en-US","picture":"http://www.gluu.org/wp-content/uploads/2012/04/mike3.png","updated_at":1486994332000,"name":"oxAuth Test User","nickname":"user","family_name":"User","email":"test_user@test.org"}

#######################################################
TEST: requestAuthorizationPromptConsent
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "application_type" : "web",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "sector_identifier_uri" : "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "client_name" : "oxAuth test app",
  "response_types" : [ "code" ]
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1648
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:14:42 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=70d1407e-0486-45b1-ae95-bc0cea6093cd",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "6291a699-6586-4f3a-b367-a7e955d5ae1e",
    "client_id": "70d1407e-0486-45b1-ae95-bc0cea6093cd",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "user_name clientinfo oxd uma_protection openid phone profile work_phone org_name permission address test super_gluu_ro_session email",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "a94d18cd-f8e2-4220-9042-8360e9eb73a4",
    "client_id_issued_at": 1575530082,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": [
        "refresh_token",
        "authorization_code"
    ],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616482,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": ["code"]
}

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
GET /oxauth/restv1/register?{ } HTTP/1.1
Host: jenkins-cb.gluu.org
Authorization: Bearer 6291a699-6586-4f3a-b367-a7e955d5ae1e

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1648
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:14:42 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=70d1407e-0486-45b1-ae95-bc0cea6093cd",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "6291a699-6586-4f3a-b367-a7e955d5ae1e",
    "client_id": "70d1407e-0486-45b1-ae95-bc0cea6093cd",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "user_name clientinfo oxd uma_protection openid phone profile work_phone org_name permission address test super_gluu_ro_session email",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "a94d18cd-f8e2-4220-9042-8360e9eb73a4",
    "client_id_issued_at": 1575530082,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": [
        "refresh_token",
        "authorization_code"
    ],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616482,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": ["code"]
}

authenticateResourceOwnerAndGrantAccess: Cleaning cookies
authenticateResourceOwnerAndGrantAccess: authorizationRequestUrl:https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=code&client_id=70d1407e-0486-45b1-ae95-bc0cea6093cd&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=857d7df6-cc62-431d-9af1-fd5f95e6291b&prompt=consent
authenticateResourceOwnerAndGrantAccess: sessionState:a84e7576ea28ff6d7e43582304b7971850a1092d2b19936a87e752a92e9f24de.5ddd15c2-da8c-4767-882c-9b8a0156bb73
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=code&client_id=70d1407e-0486-45b1-ae95-bc0cea6093cd&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=857d7df6-cc62-431d-9af1-fd5f95e6291b&prompt=consent

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm?code=d73f262c-533e-479d-8310-d1a54213481a&scope=address+openid+profile+email&session_id=c3c54619-5a6f-4f45-bd45-9f654a2d07f8&state=857d7df6-cc62-431d-9af1-fd5f95e6291b&session_state=a84e7576ea28ff6d7e43582304b7971850a1092d2b19936a87e752a92e9f24de.5ddd15c2-da8c-4767-882c-9b8a0156bb73

#######################################################
TEST: requestAuthorizationPromptConsentTrustedClient
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "oxAuthTrustedClient" : "true",
  "application_type" : "web",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "sector_identifier_uri" : "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "client_name" : "oxAuth test app",
  "response_types" : [ "code" ]
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1648
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:14:46 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=0fa1726c-a9a0-4747-8173-ef740b1152ac",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "eae26cda-aeda-4b7b-bd91-cea6e54d3c1a",
    "client_id": "0fa1726c-a9a0-4747-8173-ef740b1152ac",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "uma_protection email permission work_phone phone profile clientinfo openid test address super_gluu_ro_session user_name oxd org_name",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "54921959-7a91-4208-b9a7-65b37aaffd37",
    "client_id_issued_at": 1575530086,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": [
        "refresh_token",
        "authorization_code"
    ],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616486,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": ["code"]
}

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
GET /oxauth/restv1/register?{ } HTTP/1.1
Host: jenkins-cb.gluu.org
Authorization: Bearer eae26cda-aeda-4b7b-bd91-cea6e54d3c1a

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1648
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:14:46 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=0fa1726c-a9a0-4747-8173-ef740b1152ac",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "eae26cda-aeda-4b7b-bd91-cea6e54d3c1a",
    "client_id": "0fa1726c-a9a0-4747-8173-ef740b1152ac",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "uma_protection email permission work_phone phone profile clientinfo openid test address super_gluu_ro_session user_name oxd org_name",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "54921959-7a91-4208-b9a7-65b37aaffd37",
    "client_id_issued_at": 1575530086,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": [
        "refresh_token",
        "authorization_code"
    ],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616486,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": ["code"]
}

authenticateResourceOwnerAndGrantAccess: Cleaning cookies
authenticateResourceOwnerAndGrantAccess: authorizationRequestUrl:https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=code&client_id=0fa1726c-a9a0-4747-8173-ef740b1152ac&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=19665499-db35-4f0c-a713-2207f9339fa1&prompt=consent
authenticateResourceOwnerAndGrantAccess: sessionState:5cc5a8b8985bd4818d8d3d34d7786db3a95c6166aee191b2c0a8ccf49fe14038.2891487f-2a17-411f-9cc1-d8c0fa5efaa2
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=code&client_id=0fa1726c-a9a0-4747-8173-ef740b1152ac&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=19665499-db35-4f0c-a713-2207f9339fa1&prompt=consent

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm?code=ce5ff060-9f4a-47ad-b4f0-51fafeec831e&scope=address+openid+profile+email&session_id=5c13e471-9cd9-4f74-80cc-ea39641ba08b&state=19665499-db35-4f0c-a713-2207f9339fa1&session_state=5cc5a8b8985bd4818d8d3d34d7786db3a95c6166aee191b2c0a8ccf49fe14038.2891487f-2a17-411f-9cc1-d8c0fa5efaa2

#######################################################
TEST: requestAuthorizationPromptLogin
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "application_type" : "web",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "sector_identifier_uri" : "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "client_name" : "oxAuth test app",
  "response_types" : [ "code" ]
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1648
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:14:49 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=2392b70f-814c-472e-a2a2-0716ffd9810c",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "983c6430-b875-4173-94f2-daee6689f85f",
    "client_id": "2392b70f-814c-472e-a2a2-0716ffd9810c",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "openid permission profile test super_gluu_ro_session uma_protection user_name phone clientinfo org_name oxd email work_phone address",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "d163b61a-fe6c-4d18-aa87-c1ff4547789a",
    "client_id_issued_at": 1575530089,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": [
        "refresh_token",
        "authorization_code"
    ],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616489,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": ["code"]
}

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
GET /oxauth/restv1/register?{ } HTTP/1.1
Host: jenkins-cb.gluu.org
Authorization: Bearer 983c6430-b875-4173-94f2-daee6689f85f

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1648
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:14:49 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=2392b70f-814c-472e-a2a2-0716ffd9810c",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "983c6430-b875-4173-94f2-daee6689f85f",
    "client_id": "2392b70f-814c-472e-a2a2-0716ffd9810c",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "openid permission profile test super_gluu_ro_session uma_protection user_name phone clientinfo org_name oxd email work_phone address",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "d163b61a-fe6c-4d18-aa87-c1ff4547789a",
    "client_id_issued_at": 1575530089,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": [
        "refresh_token",
        "authorization_code"
    ],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616489,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": ["code"]
}

authenticateResourceOwnerAndGrantAccess: Cleaning cookies
authenticateResourceOwnerAndGrantAccess: authorizationRequestUrl:https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=code&client_id=2392b70f-814c-472e-a2a2-0716ffd9810c&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=45681cbb-89da-43dd-9883-d9a15b593eae&prompt=login
authenticateResourceOwnerAndGrantAccess: sessionState:8589202c6f451f11c3d65e2e84d791458c9a712d0c185108f0fed2683316c3f1.49dfef8a-3c2b-44c1-8644-74b9d6d5a59a
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=code&client_id=2392b70f-814c-472e-a2a2-0716ffd9810c&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=45681cbb-89da-43dd-9883-d9a15b593eae&prompt=login

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm?code=523d22f8-e8b3-4d84-9779-0f336beca1cb&scope=address+openid+profile+email&session_id=93066f03-08b3-4c5b-a25d-1bc4270015dc&state=45681cbb-89da-43dd-9883-d9a15b593eae&session_state=8589202c6f451f11c3d65e2e84d791458c9a712d0c185108f0fed2683316c3f1.49dfef8a-3c2b-44c1-8644-74b9d6d5a59a

#######################################################
TEST: requestAuthorizationPromptLoginConsent
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "application_type" : "web",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "sector_identifier_uri" : "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "client_name" : "oxAuth test app",
  "response_types" : [ "code" ]
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1648
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:14:53 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=7f2b1177-fe5e-4aab-9424-49c574fb3e33",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "ad9ee777-c367-47eb-bb74-28d9eb61cce8",
    "client_id": "7f2b1177-fe5e-4aab-9424-49c574fb3e33",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "profile user_name address test openid permission super_gluu_ro_session uma_protection work_phone email phone org_name clientinfo oxd",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "ee3b9dae-81c5-4bde-aa95-911e876a44fc",
    "client_id_issued_at": 1575530093,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": [
        "refresh_token",
        "authorization_code"
    ],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616493,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": ["code"]
}

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
GET /oxauth/restv1/register?{ } HTTP/1.1
Host: jenkins-cb.gluu.org
Authorization: Bearer ad9ee777-c367-47eb-bb74-28d9eb61cce8

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1648
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:14:53 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=7f2b1177-fe5e-4aab-9424-49c574fb3e33",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "ad9ee777-c367-47eb-bb74-28d9eb61cce8",
    "client_id": "7f2b1177-fe5e-4aab-9424-49c574fb3e33",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "profile user_name address test openid permission super_gluu_ro_session uma_protection work_phone email phone org_name clientinfo oxd",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "ee3b9dae-81c5-4bde-aa95-911e876a44fc",
    "client_id_issued_at": 1575530093,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": [
        "refresh_token",
        "authorization_code"
    ],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616493,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": ["code"]
}

authenticateResourceOwnerAndGrantAccess: Cleaning cookies
authenticateResourceOwnerAndGrantAccess: authorizationRequestUrl:https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=code&client_id=7f2b1177-fe5e-4aab-9424-49c574fb3e33&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=3a8f9355-29e3-4ec0-879c-4f3cc0f1fde0&prompt=login+consent
authenticateResourceOwnerAndGrantAccess: sessionState:34858494cc59a4a794cb50b80c9e13b330062efbbaed744184d488a1cb25cee5.e3ef3f0c-484b-4562-a62a-a5a4ccddf50e
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=code&client_id=7f2b1177-fe5e-4aab-9424-49c574fb3e33&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=3a8f9355-29e3-4ec0-879c-4f3cc0f1fde0&prompt=login+consent

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm?code=c4cdaad5-fad7-4ea8-9910-39fd2a6c7bf0&scope=address+openid+profile+email&session_id=d41e3f95-f2b2-49c1-b772-96f5f0fd74b1&state=3a8f9355-29e3-4ec0-879c-4f3cc0f1fde0&session_state=34858494cc59a4a794cb50b80c9e13b330062efbbaed744184d488a1cb25cee5.e3ef3f0c-484b-4562-a62a-a5a4ccddf50e

#######################################################
TEST: requestAuthorizationPromptLoginConsentTrustedClient
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "oxAuthTrustedClient" : "true",
  "application_type" : "web",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "sector_identifier_uri" : "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "client_name" : "oxAuth test app",
  "response_types" : [ "code" ]
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1648
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:14:56 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=d34ddef8-9444-45ea-b4f7-d0daa99e2ae7",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "6b4bf358-5e5d-43ad-8f1a-2a24c70f50f1",
    "client_id": "d34ddef8-9444-45ea-b4f7-d0daa99e2ae7",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "email oxd test user_name work_phone super_gluu_ro_session openid uma_protection phone org_name permission profile address clientinfo",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "60afe487-88c5-4ae9-9301-e49e80b0b925",
    "client_id_issued_at": 1575530096,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": [
        "refresh_token",
        "authorization_code"
    ],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616496,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": ["code"]
}

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
GET /oxauth/restv1/register?{ } HTTP/1.1
Host: jenkins-cb.gluu.org
Authorization: Bearer 6b4bf358-5e5d-43ad-8f1a-2a24c70f50f1

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1648
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:14:56 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=d34ddef8-9444-45ea-b4f7-d0daa99e2ae7",
    "tls_client_auth_subject_dn": "",
    "registration_access_token": "6b4bf358-5e5d-43ad-8f1a-2a24c70f50f1",
    "client_id": "d34ddef8-9444-45ea-b4f7-d0daa99e2ae7",
    "token_endpoint_auth_method": "client_secret_basic",
    "scope": "email oxd test user_name work_phone super_gluu_ro_session openid uma_protection phone org_name permission profile address clientinfo",
    "run_introspection_script_before_access_token_as_jwt_creation_and_include_claims": false,
    "client_secret": "60afe487-88c5-4ae9-9301-e49e80b0b925",
    "client_id_issued_at": 1575530096,
    "client_name": "oxAuth test app",
    "spontaneous_scopes": [],
    "id_token_signed_response_alg": "RS256",
    "access_token_as_jwt": false,
    "grant_types": [
        "refresh_token",
        "authorization_code"
    ],
    "subject_type": "pairwise",
    "keep_client_authorization_after_expiration": false,
    "redirect_uris": [
        "https://client.example.com/cb2",
        "https://client.example.com/cb1",
        "https://client.example.com/cb",
        "https://jenkins-cb.gluu.org/oxauth-rp/home.htm"
    ],
    "sector_identifier_uri": "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
    "frontchannel_logout_session_required": false,
    "client_secret_expires_at": 1575616496,
    "require_auth_time": false,
    "access_token_signing_alg": "RS256",
    "response_types": ["code"]
}

authenticateResourceOwnerAndGrantAccess: Cleaning cookies
authenticateResourceOwnerAndGrantAccess: authorizationRequestUrl:https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=code&client_id=d34ddef8-9444-45ea-b4f7-d0daa99e2ae7&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=314da7de-6526-4477-a67c-3f6cf3aa52cd&prompt=login+consent
authenticateResourceOwnerAndGrantAccess: sessionState:2bf034d53fd518554b8b1f77254534ad17018cfc7eed977f08e3752f6a9c9e23.1f703c87-9b78-409e-8040-e3fb7b69c39d
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
https://jenkins-cb.gluu.org/oxauth/restv1/authorize?response_type=code&client_id=d34ddef8-9444-45ea-b4f7-d0daa99e2ae7&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fjenkins-cb.gluu.org%2Foxauth-rp%2Fhome.htm&state=314da7de-6526-4477-a67c-3f6cf3aa52cd&prompt=login+consent

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://jenkins-cb.gluu.org/oxauth-rp/home.htm?code=bc695093-d0ba-432d-a930-dee44b217867&scope=address+openid+profile+email&session_id=fd398d60-1cd0-493f-9ba8-cbdac6035acc&state=314da7de-6526-4477-a67c-3f6cf3aa52cd&session_state=2bf034d53fd518554b8b1f77254534ad17018cfc7eed977f08e3752f6a9c9e23.1f703c87-9b78-409e-8040-e3fb7b69c39d

#######################################################
TEST: requestAuthorizationPromptNoneFail
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: jenkins-cb.gluu.org

{
  "application_type" : "web",
  "redirect_uris" : [ "https://jenkins-cb.gluu.org/oxauth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "sector_identifier_uri" : "https://jenkins-cb.gluu.org/oxauth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "client_name" : "oxAuth test app",
  "response_types" : [ "code" ]
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Cache-Control: no-store
Connection: Keep-Alive
Content-Length: 1648
Content-Type: application/json
Date: Thu, 05 Dec 2019 07:15:00 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

{
    "allow_spontaneous_scopes": false,
    "application_type": "web",
    "rpt_as_jwt": false,
    "registration_client_uri": "https://jenkins-cb.gluu.org/oxauth/restv1/register?client_id=a3d776e4-fa36-4ab5-8aa3-9dbfccc938e7",
    "tls_client_auth_subject_dn": "",
    "registrati