updated license and readme
parent
440eadcfe0
commit
5f2a64517c
|
@ -0,0 +1,13 @@
|
|||
Copyright 2012 The MITRE Corporation
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
5
README
5
README
|
@ -1,5 +0,0 @@
|
|||
An OpenID Connect reference implemementation in Java on the Spring platform.
|
||||
|
||||
Authors: Justin Richer, Amanda Anganes
|
||||
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
An OpenID Connect reference implemementation in Java on the Spring platform.
|
||||
|
||||
Authors: Justin Richer, Amanda Anganes, Michael Walsh, Michael Jett
|
||||
|
||||
Copyright 2012, The MTIRE Corporation (http://www.mitre.org/)
|
||||
|
||||
|
|
@ -26,6 +26,7 @@ public class SimpleWebDiscoveryEndpoint {
|
|||
|
||||
// look up user, see if they're local
|
||||
// if so, return this server
|
||||
// otherwise, return an error page
|
||||
|
||||
Map<String, Object> m = new HashMap<String, Object>();
|
||||
m.put("locations", Lists.newArrayList(baseUrl));
|
||||
|
@ -38,6 +39,11 @@ public class SimpleWebDiscoveryEndpoint {
|
|||
}
|
||||
|
||||
|
||||
@RequestMapping("/.well-known/openid-configuration")
|
||||
public ModelAndView providerConfiguration(ModelAndView modelAndView, HttpServletRequest request) {
|
||||
|
||||
String baseUrl = findBaseUrl(request);
|
||||
|
||||
/*
|
||||
* version string Version of the provider response. "3.0" is the default.
|
||||
* issuer string The https: URL with no path component that the OP asserts as its Issuer Identifier
|
||||
|
@ -62,11 +68,6 @@ public class SimpleWebDiscoveryEndpoint {
|
|||
* token_endpoint_auth_types_supported array A JSON array containing a list of authentication types supported by this Token Endpoint. The options are client_secret_post, client_secret_basic, client_secret_jwt, and private_key_jwt, as described in Section 2.2.1 of OpenID Connect Messages 1.0 [OpenID.Messages]. Other Authentication types may be defined by extension. If unspecified or omitted, the default is client_secret_basic HTTP Basic Authentication Scheme as specified in section 2.3.1 of OAuth 2.0 [OAuth2.0].
|
||||
* token_endpoint_auth_algs_supported array A JSON array containing a list of the JWS [JWS] signing algorithms supported by the Token Endpoint for the private_key_jwt method to encode the JWT [JWT]. Servers SHOULD support RS256.
|
||||
*/
|
||||
@RequestMapping("/.well-known/openid-configuration")
|
||||
public ModelAndView providerConfiguration(ModelAndView modelAndView, HttpServletRequest request) {
|
||||
|
||||
String baseUrl = findBaseUrl(request);
|
||||
|
||||
Map<String, Object> m = new HashMap<String, Object>();
|
||||
m.put("version", "3.0");
|
||||
m.put("issuer", baseUrl);
|
||||
|
|
Loading…
Reference in New Issue