48 Map<String, Object> m =
new HashMap<>();
51 ImmutableSet<String> tokenProfiles = ImmutableSet.of(
"bearer");
52 ArrayList<String> grantTypes = Lists.newArrayList(
"authorization_code",
"implicit",
"urn:ietf:params:oauth:grant-type:jwt-bearer",
"client_credentials",
"urn:ietf:params:oauth:grant_type:redelegate");
54 m.put(
"version",
"1.0");
55 m.put(
"issuer", issuer);
56 m.put(
"pat_profiles_supported", tokenProfiles);
57 m.put(
"aat_profiles_supported", tokenProfiles);
58 m.put(
"rpt_profiles_supported", tokenProfiles);
59 m.put(
"pat_grant_types_supported", grantTypes);
60 m.put(
"aat_grant_types_supported", grantTypes);
61 m.put(
"claim_token_profiles_supported", ImmutableSet.of());
62 m.put(
"uma_profiles_supported", ImmutableSet.of());
63 m.put(
"dynamic_client_endpoint", issuer + DynamicClientRegistrationEndpoint.URL);
64 m.put(
"token_endpoint", issuer +
"token");
65 m.put(
"authorization_endpoint", issuer +
"authorize");
66 m.put(
"requesting_party_claims_endpoint", issuer + ClaimsCollectionEndpoint.URL);
67 m.put(
"introspection_endpoint", issuer + IntrospectionEndpoint.URL);
68 m.put(
"resource_set_registration_endpoint", issuer + ResourceSetRegistrationEndpoint.DISCOVERY_URL);
69 m.put(
"permission_registration_endpoint", issuer + PermissionRegistrationEndpoint.URL);
70 m.put(
"rpt_endpoint", issuer + AuthorizationRequestEndpoint.URL);
74 model.addAttribute(
"entity", m);
75 return JsonEntityView.VIEWNAME;
ConfigurationPropertiesBean config
Definition: UmaDiscoveryEndpoint.java:43
String getIssuer()
Definition: ConfigurationPropertiesBean.java:100