Package com.nimbusds.oauth2.sdk.id

Examples of com.nimbusds.oauth2.sdk.id.ClientID


    AuthenticationRequest authRequest = new AuthenticationRequest(
      new URI("https://c2id.com/login"),
      ResponseType.parse("code"),
      Scope.parse("openid email"),
      new ClientID("123"),
      new URI("https://client.com/cb"),
      new State(),
      new Nonce());

    ClaimsRequest claimsRequest = ClaimsRequest.resolve(authRequest);
View Full Code Here


    AuthenticationRequest authRequest = new AuthenticationRequest(
      new URI("https://c2id.com/login"),
      ResponseType.parse("id_token"),
      Scope.parse("openid email"),
      new ClientID("123"),
      new URI("https://client.com/cb"),
      new State(),
      new Nonce());

    ClaimsRequest claimsRequest = ClaimsRequest.resolve(authRequest);
View Full Code Here

    cr.addIDTokenClaim(new ClaimsRequest.Entry("email", ClaimRequirement.ESSENTIAL));

    AuthenticationRequest authRequest = new AuthenticationRequest.Builder(
      new ResponseType("code"),
      new Scope("openid", "email"),
      new ClientID("123"),
      new URI("https://client.com/cb")).claims(cr).build();

    ClaimsRequest claimsRequest = ClaimsRequest.resolve(authRequest);

    Set<String> idTokenClaims = claimsRequest.getIDTokenClaimNames(false);
View Full Code Here

   
    AuthenticationRequest authRequest = new AuthenticationRequest(
      new URI("https://c2id.com/login"),
      new ResponseType("code"),
      Scope.parse("openid profile"),
      new ClientID("abc"),
      new URI("https://example.com/in"),
      new State(),
      new Nonce());
   
    ACRRequest acrRequest = ACRRequest.resolve(authRequest);
View Full Code Here

    acrValues.add(new ACR("2"));
   
    AuthenticationRequest authRequest = new AuthenticationRequest.Builder(
      new ResponseType("code"),
      new Scope("openid", "profile"),
      new ClientID("123"),
      new URI("https://example.com/in")).
      acrValues(acrValues).
      build();
   
    ACRRequest acrRequest = ACRRequest.resolve(authRequest);
View Full Code Here

    claims.addIDTokenClaim("acr", ClaimRequirement.ESSENTIAL, null, essentialACRs);
   
    AuthenticationRequest authRequest = new AuthenticationRequest.Builder(
      new ResponseType("code"),
      new Scope("openid", "profile"),
      new ClientID("123"),
      new URI("https://example.com/in")).
      claims(claims).
      build();
   
    ACRRequest acrRequest = ACRRequest.resolve(authRequest);
View Full Code Here

    claims.addIDTokenClaim("acr", ClaimRequirement.VOLUNTARY, null, essentialACRs);

    AuthenticationRequest authRequest = new AuthenticationRequest.Builder(
      new ResponseType("code"),
      new Scope("openid", "profile"),
      new ClientID("123"),
      new URI("https://example.com/in")).
      claims(claims).
      build();
   
    ACRRequest acrRequest = ACRRequest.resolve(authRequest);
View Full Code Here

    claims.addIDTokenClaim("acr", ClaimRequirement.ESSENTIAL, null, essentialACRs);

    AuthenticationRequest authRequest = new AuthenticationRequest.Builder(
      new ResponseType("code"),
      new Scope("openid", "profile"),
      new ClientID("123"),
      new URI("https://example.com/in")).
      acrValues(acrValues).
      claims(claims).
      build();
   
View Full Code Here

  public void testConstructorWithClientAuthentication()
    throws Exception {

    URI uri = new URI("https://c2id.com/token");
    ClientAuthentication clientAuth = new ClientSecretBasic(new ClientID("123"), new Secret("secret"));
    AuthorizationCodeGrant grant = new AuthorizationCodeGrant(new AuthorizationCode("abc"), null);
    Scope scope = Scope.parse("openid email");

    TokenRequest request = new TokenRequest(uri, clientAuth, grant, scope);
View Full Code Here

  public void testConstructorWithClientAuthenticationAndNoScope()
    throws Exception {

    URI uri = new URI("https://c2id.com/token");
    ClientAuthentication clientAuth = new ClientSecretBasic(new ClientID("123"), new Secret("secret"));
    AuthorizationCodeGrant grant = new AuthorizationCodeGrant(new AuthorizationCode("abc"), null);

    TokenRequest request = new TokenRequest(uri, clientAuth, grant);

    assertEquals(uri, request.getEndpointURI());
View Full Code Here

TOP

Related Classes of com.nimbusds.oauth2.sdk.id.ClientID

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.