Compare commits
126 Commits
mitreid-co
...
master
Author | SHA1 | Date |
---|---|---|
![]() |
d074573de0 | |
![]() |
5e87fa7650 | |
![]() |
7e85d2575e | |
![]() |
05fd73e643 | |
![]() |
2c41e6a267 | |
![]() |
8a58d12600 | |
![]() |
f5df762153 | |
![]() |
a0bd2c70ac | |
![]() |
6906f616e2 | |
![]() |
7eba3c12fe | |
![]() |
0d4ef2cb4f | |
![]() |
cc6bd4b590 | |
![]() |
621e86e62d | |
![]() |
73459f0348 | |
![]() |
5aa8b2a0a7 | |
![]() |
ae7debba2f | |
![]() |
ad64aef0c5 | |
![]() |
703c341308 | |
![]() |
8430b42ab3 | |
![]() |
4979f9f50e | |
![]() |
a2e8cb1a67 | |
![]() |
676451c73d | |
![]() |
04f439ec58 | |
![]() |
aa2dc78148 | |
![]() |
f56918982a | |
![]() |
69afba59cc | |
![]() |
802e40ebc9 | |
![]() |
ea6960e66a | |
![]() |
9d6f42b141 | |
![]() |
dd922b4cf7 | |
![]() |
938d7e00c2 | |
![]() |
a596cc1fd4 | |
![]() |
7ad29ae9c6 | |
![]() |
e3cfb80c33 | |
![]() |
fd938e11e9 | |
![]() |
dae674af67 | |
![]() |
67c87d56a6 | |
![]() |
4a818c7b4b | |
![]() |
fe000d91cb | |
![]() |
011bf8adb8 | |
![]() |
0ee4ee2f58 | |
![]() |
0b531a0fd3 | |
![]() |
e6a8e0c17d | |
![]() |
a070f61edf | |
![]() |
51b580aa18 | |
![]() |
3f277047e3 | |
![]() |
417a6b7c74 | |
![]() |
bf8149605a | |
![]() |
64fbee7935 | |
![]() |
bca388d740 | |
![]() |
e2d94f422a | |
![]() |
a5a16f27c7 | |
![]() |
4dd907ea16 | |
![]() |
d119559d4d | |
![]() |
b804f22bc8 | |
![]() |
f72e6b3e08 | |
![]() |
1feb0958bd | |
![]() |
6497af40e8 | |
![]() |
7dc309c5af | |
![]() |
7f956a5854 | |
![]() |
37fba622b9 | |
![]() |
c38b9d7a42 | |
![]() |
36ec1b82e6 | |
![]() |
fcb119ff6a | |
![]() |
8fb9adefc1 | |
![]() |
0ce55d079a | |
![]() |
f7da25fbe8 | |
![]() |
1c7b9d5b44 | |
![]() |
a1a45aa36a | |
![]() |
01eb1401a3 | |
![]() |
e6130872a9 | |
![]() |
ca3642b6c3 | |
![]() |
85246d2d3e | |
![]() |
ce9bf3507f | |
![]() |
9bff58085d | |
![]() |
514dcc3851 | |
![]() |
8b4e461748 | |
![]() |
ef01d3032e | |
![]() |
bba18fd118 | |
![]() |
28ad78e9f3 | |
![]() |
059e140164 | |
![]() |
0b1f9000db | |
![]() |
705ac9879c | |
![]() |
4dc31cdfbd | |
![]() |
661c242a9f | |
![]() |
0859a5d122 | |
![]() |
c11e47a75b | |
![]() |
2f31ceddf8 | |
![]() |
7e6864ff38 | |
![]() |
a316306f33 | |
![]() |
7b06d91700 | |
![]() |
8301f35e17 | |
![]() |
f17a44e9b4 | |
![]() |
90c3c396ee | |
![]() |
713e872b8a | |
![]() |
9baacc0eaf | |
![]() |
2aa12fc0e3 | |
![]() |
0c46e7cb7a | |
![]() |
e6679b6e4b | |
![]() |
0efa77b580 | |
![]() |
b9b7bf53c3 | |
![]() |
0aedfc8e22 | |
![]() |
0d564d9714 | |
![]() |
11f3cccab9 | |
![]() |
702a775881 | |
![]() |
45ea899de8 | |
![]() |
d317cf5024 | |
![]() |
cc0622edd0 | |
![]() |
52829d4adb | |
![]() |
903168a949 | |
![]() |
6216659cd6 | |
![]() |
9d1a50d17e | |
![]() |
2aecedfb3d | |
![]() |
f43ff53683 | |
![]() |
bf49cd193d | |
![]() |
835a326627 | |
![]() |
1d7fba5d6e | |
![]() |
2ea5f8fd28 | |
![]() |
050662dd5c | |
![]() |
7767c7a831 | |
![]() |
7a225e56c4 | |
![]() |
78b9b6ced4 | |
![]() |
bd72b4138d | |
![]() |
32ce21b5cd | |
![]() |
b6cf8fe22b | |
![]() |
dd0f69ba6d |
|
@ -1,4 +1,3 @@
|
||||||
local-values.conf
|
|
||||||
target
|
target
|
||||||
*~
|
*~
|
||||||
bin
|
bin
|
||||||
|
@ -11,5 +10,3 @@ bin
|
||||||
/target
|
/target
|
||||||
.springBeans
|
.springBeans
|
||||||
nb-configuration.xml
|
nb-configuration.xml
|
||||||
openid-connect-server-webapp/src/main/webapp/resources/bootstrap2/css/bootstrap-responsive.css
|
|
||||||
openid-connect-server-webapp/src/main/webapp/resources/bootstrap2/css/bootstrap.css
|
|
||||||
|
|
|
@ -1,7 +1,11 @@
|
||||||
language: java
|
language: java
|
||||||
jdk:
|
jdk:
|
||||||
- oraclejdk8
|
- oraclejdk11
|
||||||
sudo: false
|
sudo: false
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
- bash <(curl -s https://codecov.io/bash)
|
- bash <(curl -s https://codecov.io/bash)
|
||||||
|
|
||||||
|
cache:
|
||||||
|
directories:
|
||||||
|
- $HOME/.m2
|
||||||
|
|
|
@ -0,0 +1,43 @@
|
||||||
|
Unreleased:
|
||||||
|
|
||||||
|
*1.3.3*:
|
||||||
|
- Authorization codes are now longer
|
||||||
|
- Client/RS can parse the "sub" and "user_id" claims in introspection response
|
||||||
|
- Database-direct queries for fetching tokens by user (optimization)
|
||||||
|
- Device flow supports verification_uri_complete (must be turned on)
|
||||||
|
- Long scopes display properly and are still checkable
|
||||||
|
- Language system remebers when it can't find a file and stops throwing so many errors
|
||||||
|
- Index added for refresh tokens
|
||||||
|
- Updated to Spring Security 4.2.11
|
||||||
|
- Updated Spring to 4.3.22
|
||||||
|
- Change approve pages to use issuer instead of page context
|
||||||
|
- Updated oracle database scripts
|
||||||
|
|
||||||
|
*1.3.2*:
|
||||||
|
- Added changelog
|
||||||
|
- Set default redirect URI resolver strict matching to true
|
||||||
|
- Fixed XSS vulnerability on redirect URI display on approval page
|
||||||
|
- Removed MITRE from copyright
|
||||||
|
- Disallow unsigned JWTs on client authentication
|
||||||
|
- Upgraded Nimbus revision
|
||||||
|
- Added French translation
|
||||||
|
- Added hooks for custom JWT claims
|
||||||
|
- Removed "Not Yet Implemented" tag from post-logout redirect URI
|
||||||
|
|
||||||
|
*1.3.1*:
|
||||||
|
- Added End Session endpoint
|
||||||
|
- Fixed discovery endpoint
|
||||||
|
- Downgrade MySQL connector dependency version from developer preview to GA release
|
||||||
|
|
||||||
|
*1.3.0*:
|
||||||
|
- Added device flow support
|
||||||
|
- Added PKCE support
|
||||||
|
- Modularized UI to allow better overlay and extensions
|
||||||
|
- Modularized data import/export API
|
||||||
|
- Added software statements to dynamic client registration
|
||||||
|
- Added assertion processing framework
|
||||||
|
- Removed ID tokens from storage
|
||||||
|
- Removed structured scopes
|
||||||
|
|
||||||
|
*1.2.6*:
|
||||||
|
- Added strict HEART compliance mode
|
|
@ -1,8 +1,9 @@
|
||||||
Copyright 2016 The MITRE Corporation
|
Copyright 2018 The MIT Internet Trust Consortium
|
||||||
and the MIT Internet Trust Consortium
|
|
||||||
|
Portions copyright 2011-2013 The MITRE Corporation
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
you may not use this file except in compliance with the License.
|
you may not use this project except in compliance with the License.
|
||||||
You may obtain a copy of the License at
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# MITREid Connect
|
# MITREid Connect
|
||||||
---
|
---
|
||||||
|
|
||||||
[](https://maven-badges.herokuapp.com/maven-central/org.mitre/openid-connect-parent) [](https://travis-ci.org/mitreid-connect/OpenID-Connect-Java-Spring-Server)
|
[](https://maven-badges.herokuapp.com/maven-central/org.mitre/openid-connect-parent) [](https://travis-ci.org/mitreid-connect/OpenID-Connect-Java-Spring-Server) [](https://codecov.io/github/mitreid-connect/OpenID-Connect-Java-Spring-Server)
|
||||||
|
|
||||||
This project contains a certified OpenID Connect reference implementation in Java on the Spring platform, including a functioning [server library](openid-connect-server), [deployable server package](openid-connect-server-webapp), [client (RP) library](openid-connect-client), and general [utility libraries](openid-connect-common). The server can be used as an OpenID Connect Identity Provider as well as a general-purpose OAuth 2.0 Authorization Server.
|
This project contains a certified OpenID Connect reference implementation in Java on the Spring platform, including a functioning [server library](openid-connect-server), [deployable server package](openid-connect-server-webapp), [client (RP) library](openid-connect-client), and general [utility libraries](openid-connect-common). The server can be used as an OpenID Connect Identity Provider as well as a general-purpose OAuth 2.0 Authorization Server.
|
||||||
|
|
||||||
|
@ -28,5 +28,4 @@ The authors and key contributors of the project include:
|
||||||
* [Mark Janssen](https://github.com/praseodym)
|
* [Mark Janssen](https://github.com/praseodym)
|
||||||
|
|
||||||
|
|
||||||
Copyright ©2017, [The MITRE Corporation](http://www.mitre.org/)
|
Licensed under the Apache 2.0 license, for details see `LICENSE.txt`.
|
||||||
and the [MIT Internet Trust Consortium](http://www.trust.mit.edu/). Licensed under the Apache 2.0 license, for details see `LICENSE.txt`.
|
|
||||||
|
|
|
@ -35,5 +35,4 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
版权所有 ©2016, [ MITRE公司 ](http://www.mitre.org/)
|
版权所有 ©2018 [MIT因特网信任联盟](http://www.mit-trust.org/). 采用Apache 2.0许可证, 详见 `LICENSE.txt`.
|
||||||
以及 [MIT因特网信任联盟](http://www.mit-trust.org/). 采用Apache 2.0许可证, 详见 `LICENSE.txt`.
|
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!--
|
<!--
|
||||||
Copyright 2017 The MITRE Corporation
|
Copyright 2018 The MIT Internet Trust Consortium
|
||||||
and the MIT Internet Trust Consortium
|
|
||||||
|
Portions copyright 2011-2013 The MITRE Corporation
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
you may not use this file except in compliance with the License.
|
you may not use this file except in compliance with the License.
|
||||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
## Overview ##
|
## Overview ##
|
||||||
|
|
||||||
This project contains an OpenID Connect Client implemented as a Spring Security AuthenticationFilter. The client facilitates a user's authentication into the secured application to an OpenID Connect Java Spring Server following the OpenID Connect Standard protocol.
|
This project contains an OpenID Connect Client implemented as a Spring Security AuthenticationFilter. The client facilitates a user's authentication into the secured application to an OpenID Connect Server following the OpenID Connect standard protocol.
|
||||||
|
|
||||||
## Configuring ##
|
## Configuring ##
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!--
|
<!--
|
||||||
Copyright 2017 The MITRE Corporation
|
Copyright 2018 The MIT Internet Trust Consortium
|
||||||
and the MIT Internet Trust Consortium
|
|
||||||
|
Portions copyright 2011-2013 The MITRE Corporation
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
you may not use this file except in compliance with the License.
|
you may not use this file except in compliance with the License.
|
||||||
|
@ -21,7 +22,7 @@
|
||||||
<parent>
|
<parent>
|
||||||
<artifactId>openid-connect-parent</artifactId>
|
<artifactId>openid-connect-parent</artifactId>
|
||||||
<groupId>org.mitre</groupId>
|
<groupId>org.mitre</groupId>
|
||||||
<version>1.3.0-RC2</version>
|
<version>1.3.5-SNAPSHOT</version>
|
||||||
<relativePath>..</relativePath>
|
<relativePath>..</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
<artifactId>openid-connect-client</artifactId>
|
<artifactId>openid-connect-client</artifactId>
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
*
|
||||||
|
* Portions copyright 2011-2013 The MITRE Corporation
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -16,6 +17,8 @@
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
package org.mitre.oauth2.introspectingfilter;
|
package org.mitre.oauth2.introspectingfilter;
|
||||||
|
|
||||||
|
import static org.mitre.oauth2.model.ClientDetailsEntity.AuthMethod.SECRET_BASIC;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.net.URI;
|
import java.net.URI;
|
||||||
import java.util.Calendar;
|
import java.util.Calendar;
|
||||||
|
@ -54,8 +57,6 @@ import com.google.gson.JsonObject;
|
||||||
import com.google.gson.JsonParser;
|
import com.google.gson.JsonParser;
|
||||||
import com.nimbusds.jose.util.Base64;
|
import com.nimbusds.jose.util.Base64;
|
||||||
|
|
||||||
import static org.mitre.oauth2.model.ClientDetailsEntity.AuthMethod.SECRET_BASIC;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This ResourceServerTokenServices implementation introspects incoming tokens at a
|
* This ResourceServerTokenServices implementation introspects incoming tokens at a
|
||||||
* server's introspection endpoint URL and passes an Authentication object along
|
* server's introspection endpoint URL and passes an Authentication object along
|
||||||
|
@ -243,8 +244,11 @@ public class IntrospectingTokenService implements ResourceServerTokenServices {
|
||||||
private Authentication createUserAuthentication(JsonObject token) {
|
private Authentication createUserAuthentication(JsonObject token) {
|
||||||
JsonElement userId = token.get("user_id");
|
JsonElement userId = token.get("user_id");
|
||||||
if(userId == null) {
|
if(userId == null) {
|
||||||
|
userId = token.get("sub");
|
||||||
|
if (userId == null) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return new PreAuthenticatedAuthenticationToken(userId.getAsString(), token, introspectionAuthorityGranter.getAuthorities(token));
|
return new PreAuthenticatedAuthenticationToken(userId.getAsString(), token, introspectionAuthorityGranter.getAuthorities(token));
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
*
|
||||||
|
* Portions copyright 2011-2013 The MITRE Corporation
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
*
|
||||||
|
* Portions copyright 2011-2013 The MITRE Corporation
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
*
|
||||||
|
* Portions copyright 2011-2013 The MITRE Corporation
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
*
|
||||||
|
* Portions copyright 2011-2013 The MITRE Corporation
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
*
|
||||||
|
* Portions copyright 2011-2013 The MITRE Corporation
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
*
|
||||||
|
* Portions copyright 2011-2013 The MITRE Corporation
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -1,3 +1,18 @@
|
||||||
|
/*******************************************************************************
|
||||||
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
|
*
|
||||||
|
* 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.
|
||||||
|
*******************************************************************************/
|
||||||
package org.mitre.openid.connect.client;
|
package org.mitre.openid.connect.client;
|
||||||
|
|
||||||
import org.springframework.security.authentication.AuthenticationServiceException;
|
import org.springframework.security.authentication.AuthenticationServiceException;
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
*
|
||||||
|
* Portions copyright 2011-2013 The MITRE Corporation
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
*
|
||||||
|
* Portions copyright 2011-2013 The MITRE Corporation
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
*
|
||||||
|
* Portions copyright 2011-2013 The MITRE Corporation
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
*
|
||||||
|
* Portions copyright 2011-2013 The MITRE Corporation
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -90,6 +91,7 @@ public class UserInfoFetcher {
|
||||||
this.factory = new HttpComponentsClientHttpRequestFactory(httpClient);
|
this.factory = new HttpComponentsClientHttpRequestFactory(httpClient);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public UserInfo load(final PendingOIDCAuthenticationToken token) throws URISyntaxException {
|
public UserInfo load(final PendingOIDCAuthenticationToken token) throws URISyntaxException {
|
||||||
|
|
||||||
ServerConfiguration serverConfiguration = token.getServerConfiguration();
|
ServerConfiguration serverConfiguration = token.getServerConfiguration();
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
*
|
||||||
|
* Portions copyright 2011-2013 The MITRE Corporation
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
*
|
||||||
|
* Portions copyright 2011-2013 The MITRE Corporation
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
*
|
||||||
|
* Portions copyright 2011-2013 The MITRE Corporation
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
*
|
||||||
|
* Portions copyright 2011-2013 The MITRE Corporation
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
*
|
||||||
|
* Portions copyright 2011-2013 The MITRE Corporation
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
*
|
||||||
|
* Portions copyright 2011-2013 The MITRE Corporation
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
*
|
||||||
|
* Portions copyright 2011-2013 The MITRE Corporation
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
*
|
||||||
|
* Portions copyright 2011-2013 The MITRE Corporation
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
*
|
||||||
|
* Portions copyright 2011-2013 The MITRE Corporation
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -19,8 +20,6 @@
|
||||||
*/
|
*/
|
||||||
package org.mitre.openid.connect.client.service;
|
package org.mitre.openid.connect.client.service;
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
import org.mitre.oauth2.model.RegisteredClient;
|
import org.mitre.oauth2.model.RegisteredClient;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
*
|
||||||
|
* Portions copyright 2011-2013 The MITRE Corporation
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
*
|
||||||
|
* Portions copyright 2011-2013 The MITRE Corporation
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
*
|
||||||
|
* Portions copyright 2011-2013 The MITRE Corporation
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -19,6 +20,13 @@
|
||||||
*/
|
*/
|
||||||
package org.mitre.openid.connect.client.service.impl;
|
package org.mitre.openid.connect.client.service.impl;
|
||||||
|
|
||||||
|
import static org.mitre.util.JsonUtils.getAsBoolean;
|
||||||
|
import static org.mitre.util.JsonUtils.getAsEncryptionMethodList;
|
||||||
|
import static org.mitre.util.JsonUtils.getAsJweAlgorithmList;
|
||||||
|
import static org.mitre.util.JsonUtils.getAsJwsAlgorithmList;
|
||||||
|
import static org.mitre.util.JsonUtils.getAsString;
|
||||||
|
import static org.mitre.util.JsonUtils.getAsStringList;
|
||||||
|
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.concurrent.ExecutionException;
|
import java.util.concurrent.ExecutionException;
|
||||||
|
@ -41,13 +49,6 @@ import com.google.gson.JsonElement;
|
||||||
import com.google.gson.JsonObject;
|
import com.google.gson.JsonObject;
|
||||||
import com.google.gson.JsonParser;
|
import com.google.gson.JsonParser;
|
||||||
|
|
||||||
import static org.mitre.util.JsonUtils.getAsBoolean;
|
|
||||||
import static org.mitre.util.JsonUtils.getAsEncryptionMethodList;
|
|
||||||
import static org.mitre.util.JsonUtils.getAsJweAlgorithmList;
|
|
||||||
import static org.mitre.util.JsonUtils.getAsJwsAlgorithmList;
|
|
||||||
import static org.mitre.util.JsonUtils.getAsString;
|
|
||||||
import static org.mitre.util.JsonUtils.getAsStringList;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* Dynamically fetches OpenID Connect server configurations based on the issuer. Caches the server configurations.
|
* Dynamically fetches OpenID Connect server configurations based on the issuer. Caches the server configurations.
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
*
|
||||||
|
* Portions copyright 2011-2013 The MITRE Corporation
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
*
|
||||||
|
* Portions copyright 2011-2013 The MITRE Corporation
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
*
|
||||||
|
* Portions copyright 2011-2013 The MITRE Corporation
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
*
|
||||||
|
* Portions copyright 2011-2013 The MITRE Corporation
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
*
|
||||||
|
* Portions copyright 2011-2013 The MITRE Corporation
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
*
|
||||||
|
* Portions copyright 2011-2013 The MITRE Corporation
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
*
|
||||||
|
* Portions copyright 2011-2013 The MITRE Corporation
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
*
|
||||||
|
* Portions copyright 2011-2013 The MITRE Corporation
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
*
|
||||||
|
* Portions copyright 2011-2013 The MITRE Corporation
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
*
|
||||||
|
* Portions copyright 2011-2013 The MITRE Corporation
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
*
|
||||||
|
* Portions copyright 2011-2013 The MITRE Corporation
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
*
|
||||||
|
* Portions copyright 2011-2013 The MITRE Corporation
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
*
|
||||||
|
* Portions copyright 2011-2013 The MITRE Corporation
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
*
|
||||||
|
* Portions copyright 2011-2013 The MITRE Corporation
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -1,11 +1,20 @@
|
||||||
|
/*******************************************************************************
|
||||||
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
|
*
|
||||||
|
* 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.
|
||||||
|
*******************************************************************************/
|
||||||
package org.mitre.openid.connect.client;
|
package org.mitre.openid.connect.client;
|
||||||
|
|
||||||
import static org.hamcrest.CoreMatchers.instanceOf;
|
|
||||||
import static org.hamcrest.CoreMatchers.is;
|
|
||||||
import static org.junit.Assert.assertThat;
|
|
||||||
import static org.junit.Assert.fail;
|
|
||||||
import static org.mockito.Mockito.mock;
|
|
||||||
|
|
||||||
import javax.servlet.http.HttpServletRequest;
|
import javax.servlet.http.HttpServletRequest;
|
||||||
import javax.servlet.http.HttpServletResponse;
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
|
||||||
|
@ -13,6 +22,14 @@ import org.junit.Test;
|
||||||
import org.mockito.Mockito;
|
import org.mockito.Mockito;
|
||||||
import org.springframework.security.authentication.AuthenticationServiceException;
|
import org.springframework.security.authentication.AuthenticationServiceException;
|
||||||
|
|
||||||
|
import static org.hamcrest.CoreMatchers.instanceOf;
|
||||||
|
import static org.hamcrest.CoreMatchers.is;
|
||||||
|
|
||||||
|
import static org.mockito.Mockito.mock;
|
||||||
|
|
||||||
|
import static org.junit.Assert.assertThat;
|
||||||
|
import static org.junit.Assert.fail;
|
||||||
|
|
||||||
public class TestOIDCAuthenticationFilter {
|
public class TestOIDCAuthenticationFilter {
|
||||||
|
|
||||||
private OIDCAuthenticationFilter filter = new OIDCAuthenticationFilter();
|
private OIDCAuthenticationFilter filter = new OIDCAuthenticationFilter();
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
*
|
||||||
|
* Portions copyright 2011-2013 The MITRE Corporation
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
*
|
||||||
|
* Portions copyright 2011-2013 The MITRE Corporation
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
*
|
||||||
|
* Portions copyright 2011-2013 The MITRE Corporation
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
*
|
||||||
|
* Portions copyright 2011-2013 The MITRE Corporation
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -91,7 +92,7 @@ public class TestSignedAuthRequestUrlBuilder {
|
||||||
@Before
|
@Before
|
||||||
public void prepare() throws NoSuchAlgorithmException, InvalidKeySpecException {
|
public void prepare() throws NoSuchAlgorithmException, InvalidKeySpecException {
|
||||||
|
|
||||||
RSAKey key = new RSAKey(new Base64URL(n), new Base64URL(e), new Base64URL(d), KeyUse.SIGNATURE, null, new Algorithm(alg), kid, null, null, null);
|
RSAKey key = new RSAKey(new Base64URL(n), new Base64URL(e), new Base64URL(d), KeyUse.SIGNATURE, null, new Algorithm(alg), kid, null, null, null, null, null);
|
||||||
Map<String, JWK> keys = Maps.newHashMap();
|
Map<String, JWK> keys = Maps.newHashMap();
|
||||||
keys.put("client", key);
|
keys.put("client", key);
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
*
|
||||||
|
* Portions copyright 2011-2013 The MITRE Corporation
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
*
|
||||||
|
* Portions copyright 2011-2013 The MITRE Corporation
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
*
|
||||||
|
* Portions copyright 2011-2013 The MITRE Corporation
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!--
|
<!--
|
||||||
Copyright 2017 The MITRE Corporation
|
Copyright 2018 The MIT Internet Trust Consortium
|
||||||
and the MIT Internet Trust Consortium
|
|
||||||
|
Portions copyright 2011-2013 The MITRE Corporation
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
you may not use this file except in compliance with the License.
|
you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!--
|
<!--
|
||||||
Copyright 2017 The MITRE Corporation
|
Copyright 2018 The MIT Internet Trust Consortium
|
||||||
and the MIT Internet Trust Consortium
|
|
||||||
|
Portions copyright 2011-2013 The MITRE Corporation
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
you may not use this file except in compliance with the License.
|
you may not use this file except in compliance with the License.
|
||||||
|
@ -21,7 +22,7 @@
|
||||||
<parent>
|
<parent>
|
||||||
<artifactId>openid-connect-parent</artifactId>
|
<artifactId>openid-connect-parent</artifactId>
|
||||||
<groupId>org.mitre</groupId>
|
<groupId>org.mitre</groupId>
|
||||||
<version>1.3.0-RC2</version>
|
<version>1.3.5-SNAPSHOT</version>
|
||||||
<relativePath>..</relativePath>
|
<relativePath>..</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
<artifactId>openid-connect-common</artifactId>
|
<artifactId>openid-connect-common</artifactId>
|
||||||
|
@ -86,6 +87,26 @@
|
||||||
<groupId>org.bouncycastle</groupId>
|
<groupId>org.bouncycastle</groupId>
|
||||||
<artifactId>bcprov-jdk15on</artifactId>
|
<artifactId>bcprov-jdk15on</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>javax.annotation</groupId>
|
||||||
|
<artifactId>javax.annotation-api</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>jakarta.xml.bind</groupId>
|
||||||
|
<artifactId>jakarta.xml.bind-api</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>javax.xml.bind</groupId>
|
||||||
|
<artifactId>jaxb-api</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>javax.activation</groupId>
|
||||||
|
<artifactId>activation</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.glassfish.jaxb</groupId>
|
||||||
|
<artifactId>jaxb-runtime</artifactId>
|
||||||
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
|
|
|
@ -1,12 +1,27 @@
|
||||||
|
/*******************************************************************************
|
||||||
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
|
*
|
||||||
|
* 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.
|
||||||
|
*******************************************************************************/
|
||||||
package org.mitre.data;
|
package org.mitre.data;
|
||||||
|
|
||||||
import org.slf4j.Logger;
|
|
||||||
import org.slf4j.LoggerFactory;
|
|
||||||
|
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Abstract class for performing an operation on a potentially large
|
* Abstract class for performing an operation on a potentially large
|
||||||
* number of items by paging through the items in discreet chunks.
|
* number of items by paging through the items in discreet chunks.
|
||||||
|
|
|
@ -1,3 +1,18 @@
|
||||||
|
/*******************************************************************************
|
||||||
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
|
*
|
||||||
|
* 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.
|
||||||
|
*******************************************************************************/
|
||||||
package org.mitre.data;
|
package org.mitre.data;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,3 +1,18 @@
|
||||||
|
/*******************************************************************************
|
||||||
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
|
*
|
||||||
|
* 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.
|
||||||
|
*******************************************************************************/
|
||||||
package org.mitre.data;
|
package org.mitre.data;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
*
|
||||||
|
* Portions copyright 2011-2013 The MITRE Corporation
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
*
|
||||||
|
* Portions copyright 2011-2013 The MITRE Corporation
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -25,6 +24,7 @@ import org.mitre.openid.connect.config.ConfigurationPropertiesBean;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
import com.google.common.base.Strings;
|
import com.google.common.base.Strings;
|
||||||
import com.nimbusds.jwt.JWT;
|
import com.nimbusds.jwt.JWT;
|
||||||
|
@ -37,6 +37,7 @@ import com.nimbusds.jwt.SignedJWT;
|
||||||
* @author jricher
|
* @author jricher
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
@Component("selfAssertionValidator")
|
||||||
public class SelfAssertionValidator implements AssertionValidator {
|
public class SelfAssertionValidator implements AssertionValidator {
|
||||||
|
|
||||||
private static Logger logger = LoggerFactory.getLogger(SelfAssertionValidator.class);
|
private static Logger logger = LoggerFactory.getLogger(SelfAssertionValidator.class);
|
||||||
|
@ -62,16 +63,19 @@ public class SelfAssertionValidator implements AssertionValidator {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// make sure the issuer exists
|
||||||
if (Strings.isNullOrEmpty(claims.getIssuer())) {
|
if (Strings.isNullOrEmpty(claims.getIssuer())) {
|
||||||
logger.debug("No issuer for assertion, rejecting");
|
logger.debug("No issuer for assertion, rejecting");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (claims.getIssuer().equals(config.getIssuer())) {
|
// make sure the issuer is us
|
||||||
|
if (!claims.getIssuer().equals(config.getIssuer())) {
|
||||||
logger.debug("Issuer is not the same as this server, rejecting");
|
logger.debug("Issuer is not the same as this server, rejecting");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// validate the signature based on our public key
|
||||||
if (jwtService.validateSignature((SignedJWT) assertion)) {
|
if (jwtService.validateSignature((SignedJWT) assertion)) {
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
*
|
||||||
|
* Portions copyright 2011-2013 The MITRE Corporation
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
*
|
||||||
|
* Portions copyright 2011-2013 The MITRE Corporation
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -45,7 +46,6 @@ import com.nimbusds.jose.crypto.ECDHEncrypter;
|
||||||
import com.nimbusds.jose.crypto.RSADecrypter;
|
import com.nimbusds.jose.crypto.RSADecrypter;
|
||||||
import com.nimbusds.jose.crypto.RSAEncrypter;
|
import com.nimbusds.jose.crypto.RSAEncrypter;
|
||||||
import com.nimbusds.jose.crypto.bc.BouncyCastleProviderSingleton;
|
import com.nimbusds.jose.crypto.bc.BouncyCastleProviderSingleton;
|
||||||
import com.nimbusds.jose.jca.JCAContext;
|
|
||||||
import com.nimbusds.jose.jwk.ECKey;
|
import com.nimbusds.jose.jwk.ECKey;
|
||||||
import com.nimbusds.jose.jwk.JWK;
|
import com.nimbusds.jose.jwk.JWK;
|
||||||
import com.nimbusds.jose.jwk.OctetSequenceKey;
|
import com.nimbusds.jose.jwk.OctetSequenceKey;
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
*
|
||||||
|
* Portions copyright 2011-2013 The MITRE Corporation
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
*
|
||||||
|
* Portions copyright 2011-2013 The MITRE Corporation
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -17,8 +18,6 @@
|
||||||
package org.mitre.jwt.signer.service.impl;
|
package org.mitre.jwt.signer.service.impl;
|
||||||
|
|
||||||
import java.security.NoSuchAlgorithmException;
|
import java.security.NoSuchAlgorithmException;
|
||||||
import java.security.interfaces.ECPrivateKey;
|
|
||||||
import java.security.interfaces.ECPublicKey;
|
|
||||||
import java.security.spec.InvalidKeySpecException;
|
import java.security.spec.InvalidKeySpecException;
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
*
|
||||||
|
* Portions copyright 2011-2013 The MITRE Corporation
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -100,8 +99,10 @@ public class SymmetricKeyJWTValidatorCacheService {
|
||||||
try {
|
try {
|
||||||
|
|
||||||
String id = "SYMMETRIC-KEY";
|
String id = "SYMMETRIC-KEY";
|
||||||
|
JWK jwk = new OctetSequenceKey.Builder(Base64URL.encode(key))
|
||||||
JWK jwk = new OctetSequenceKey(Base64URL.encode(key), KeyUse.SIGNATURE, null, null, id, null, null, null);
|
.keyUse(KeyUse.SIGNATURE)
|
||||||
|
.keyID(id)
|
||||||
|
.build();
|
||||||
Map<String, JWK> keys = ImmutableMap.of(id, jwk);
|
Map<String, JWK> keys = ImmutableMap.of(id, jwk);
|
||||||
JWTSigningAndValidationService service = new DefaultJWTSigningAndValidationService(keys);
|
JWTSigningAndValidationService service = new DefaultJWTSigningAndValidationService(keys);
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,50 @@
|
||||||
|
/*******************************************************************************
|
||||||
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
|
*
|
||||||
|
* 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.
|
||||||
|
*******************************************************************************/
|
||||||
|
|
||||||
|
package org.mitre.oauth2.exception;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author jricher
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public class DeviceCodeCreationException extends Exception {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 8078568710169208466L;
|
||||||
|
|
||||||
|
private String error;
|
||||||
|
|
||||||
|
public DeviceCodeCreationException(String error, String message) {
|
||||||
|
super(message);
|
||||||
|
this.error = error;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return the error
|
||||||
|
*/
|
||||||
|
public String getError() {
|
||||||
|
return error;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param error the error to set
|
||||||
|
*/
|
||||||
|
public void setError(String error) {
|
||||||
|
this.error = error;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
|
@ -1,6 +1,7 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
*
|
||||||
|
* Portions copyright 2011-2013 The MITRE Corporation
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
*
|
||||||
|
* Portions copyright 2011-2013 The MITRE Corporation
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
*
|
||||||
|
* Portions copyright 2011-2013 The MITRE Corporation
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -57,7 +58,6 @@ import org.mitre.oauth2.model.convert.SimpleGrantedAuthorityStringConverter;
|
||||||
import org.springframework.security.core.GrantedAuthority;
|
import org.springframework.security.core.GrantedAuthority;
|
||||||
import org.springframework.security.oauth2.provider.ClientDetails;
|
import org.springframework.security.oauth2.provider.ClientDetails;
|
||||||
|
|
||||||
import com.nimbusds.jose.Algorithm;
|
|
||||||
import com.nimbusds.jose.EncryptionMethod;
|
import com.nimbusds.jose.EncryptionMethod;
|
||||||
import com.nimbusds.jose.JWEAlgorithm;
|
import com.nimbusds.jose.JWEAlgorithm;
|
||||||
import com.nimbusds.jose.JWSAlgorithm;
|
import com.nimbusds.jose.JWSAlgorithm;
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
*
|
||||||
|
* Portions copyright 2011-2013 The MITRE Corporation
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -41,7 +42,6 @@ import javax.persistence.ManyToOne;
|
||||||
import javax.persistence.NamedQueries;
|
import javax.persistence.NamedQueries;
|
||||||
import javax.persistence.NamedQuery;
|
import javax.persistence.NamedQuery;
|
||||||
import javax.persistence.OneToMany;
|
import javax.persistence.OneToMany;
|
||||||
import javax.persistence.OneToOne;
|
|
||||||
import javax.persistence.Table;
|
import javax.persistence.Table;
|
||||||
import javax.persistence.Temporal;
|
import javax.persistence.Temporal;
|
||||||
import javax.persistence.Transient;
|
import javax.persistence.Transient;
|
||||||
|
@ -71,7 +71,8 @@ import com.nimbusds.jwt.JWT;
|
||||||
@NamedQuery(name = OAuth2AccessTokenEntity.QUERY_BY_CLIENT, query = "select a from OAuth2AccessTokenEntity a where a.client = :" + OAuth2AccessTokenEntity.PARAM_CLIENT),
|
@NamedQuery(name = OAuth2AccessTokenEntity.QUERY_BY_CLIENT, query = "select a from OAuth2AccessTokenEntity a where a.client = :" + OAuth2AccessTokenEntity.PARAM_CLIENT),
|
||||||
@NamedQuery(name = OAuth2AccessTokenEntity.QUERY_BY_TOKEN_VALUE, query = "select a from OAuth2AccessTokenEntity a where a.jwt = :" + OAuth2AccessTokenEntity.PARAM_TOKEN_VALUE),
|
@NamedQuery(name = OAuth2AccessTokenEntity.QUERY_BY_TOKEN_VALUE, query = "select a from OAuth2AccessTokenEntity a where a.jwt = :" + OAuth2AccessTokenEntity.PARAM_TOKEN_VALUE),
|
||||||
@NamedQuery(name = OAuth2AccessTokenEntity.QUERY_BY_APPROVED_SITE, query = "select a from OAuth2AccessTokenEntity a where a.approvedSite = :" + OAuth2AccessTokenEntity.PARAM_APPROVED_SITE),
|
@NamedQuery(name = OAuth2AccessTokenEntity.QUERY_BY_APPROVED_SITE, query = "select a from OAuth2AccessTokenEntity a where a.approvedSite = :" + OAuth2AccessTokenEntity.PARAM_APPROVED_SITE),
|
||||||
@NamedQuery(name = OAuth2AccessTokenEntity.QUERY_BY_RESOURCE_SET, query = "select a from OAuth2AccessTokenEntity a join a.permissions p where p.resourceSet.id = :" + OAuth2AccessTokenEntity.PARAM_RESOURCE_SET_ID)
|
@NamedQuery(name = OAuth2AccessTokenEntity.QUERY_BY_RESOURCE_SET, query = "select a from OAuth2AccessTokenEntity a join a.permissions p where p.resourceSet.id = :" + OAuth2AccessTokenEntity.PARAM_RESOURCE_SET_ID),
|
||||||
|
@NamedQuery(name = OAuth2AccessTokenEntity.QUERY_BY_NAME, query = "select r from OAuth2AccessTokenEntity r where r.authenticationHolder.userAuth.name = :" + OAuth2AccessTokenEntity.PARAM_NAME)
|
||||||
})
|
})
|
||||||
@org.codehaus.jackson.map.annotate.JsonSerialize(using = OAuth2AccessTokenJackson1Serializer.class)
|
@org.codehaus.jackson.map.annotate.JsonSerialize(using = OAuth2AccessTokenJackson1Serializer.class)
|
||||||
@org.codehaus.jackson.map.annotate.JsonDeserialize(using = OAuth2AccessTokenJackson1Deserializer.class)
|
@org.codehaus.jackson.map.annotate.JsonDeserialize(using = OAuth2AccessTokenJackson1Deserializer.class)
|
||||||
|
@ -86,6 +87,7 @@ public class OAuth2AccessTokenEntity implements OAuth2AccessToken {
|
||||||
public static final String QUERY_EXPIRED_BY_DATE = "OAuth2AccessTokenEntity.getAllExpiredByDate";
|
public static final String QUERY_EXPIRED_BY_DATE = "OAuth2AccessTokenEntity.getAllExpiredByDate";
|
||||||
public static final String QUERY_ALL = "OAuth2AccessTokenEntity.getAll";
|
public static final String QUERY_ALL = "OAuth2AccessTokenEntity.getAll";
|
||||||
public static final String QUERY_BY_RESOURCE_SET = "OAuth2AccessTokenEntity.getByResourceSet";
|
public static final String QUERY_BY_RESOURCE_SET = "OAuth2AccessTokenEntity.getByResourceSet";
|
||||||
|
public static final String QUERY_BY_NAME = "OAuth2AccessTokenEntity.getByName";
|
||||||
|
|
||||||
public static final String PARAM_TOKEN_VALUE = "tokenValue";
|
public static final String PARAM_TOKEN_VALUE = "tokenValue";
|
||||||
public static final String PARAM_CLIENT = "client";
|
public static final String PARAM_CLIENT = "client";
|
||||||
|
@ -93,6 +95,7 @@ public class OAuth2AccessTokenEntity implements OAuth2AccessToken {
|
||||||
public static final String PARAM_DATE = "date";
|
public static final String PARAM_DATE = "date";
|
||||||
public static final String PARAM_RESOURCE_SET_ID = "rsid";
|
public static final String PARAM_RESOURCE_SET_ID = "rsid";
|
||||||
public static final String PARAM_APPROVED_SITE = "approvedSite";
|
public static final String PARAM_APPROVED_SITE = "approvedSite";
|
||||||
|
public static final String PARAM_NAME = "name";
|
||||||
|
|
||||||
public static final String ID_TOKEN_FIELD_NAME = "id_token";
|
public static final String ID_TOKEN_FIELD_NAME = "id_token";
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
*
|
||||||
|
* Portions copyright 2011-2013 The MITRE Corporation
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -52,7 +53,8 @@ import com.nimbusds.jwt.JWT;
|
||||||
@NamedQuery(name = OAuth2RefreshTokenEntity.QUERY_ALL, query = "select r from OAuth2RefreshTokenEntity r"),
|
@NamedQuery(name = OAuth2RefreshTokenEntity.QUERY_ALL, query = "select r from OAuth2RefreshTokenEntity r"),
|
||||||
@NamedQuery(name = OAuth2RefreshTokenEntity.QUERY_EXPIRED_BY_DATE, query = "select r from OAuth2RefreshTokenEntity r where r.expiration <= :" + OAuth2RefreshTokenEntity.PARAM_DATE),
|
@NamedQuery(name = OAuth2RefreshTokenEntity.QUERY_EXPIRED_BY_DATE, query = "select r from OAuth2RefreshTokenEntity r where r.expiration <= :" + OAuth2RefreshTokenEntity.PARAM_DATE),
|
||||||
@NamedQuery(name = OAuth2RefreshTokenEntity.QUERY_BY_CLIENT, query = "select r from OAuth2RefreshTokenEntity r where r.client = :" + OAuth2RefreshTokenEntity.PARAM_CLIENT),
|
@NamedQuery(name = OAuth2RefreshTokenEntity.QUERY_BY_CLIENT, query = "select r from OAuth2RefreshTokenEntity r where r.client = :" + OAuth2RefreshTokenEntity.PARAM_CLIENT),
|
||||||
@NamedQuery(name = OAuth2RefreshTokenEntity.QUERY_BY_TOKEN_VALUE, query = "select r from OAuth2RefreshTokenEntity r where r.jwt = :" + OAuth2RefreshTokenEntity.PARAM_TOKEN_VALUE)
|
@NamedQuery(name = OAuth2RefreshTokenEntity.QUERY_BY_TOKEN_VALUE, query = "select r from OAuth2RefreshTokenEntity r where r.jwt = :" + OAuth2RefreshTokenEntity.PARAM_TOKEN_VALUE),
|
||||||
|
@NamedQuery(name = OAuth2RefreshTokenEntity.QUERY_BY_NAME, query = "select r from OAuth2RefreshTokenEntity r where r.authenticationHolder.userAuth.name = :" + OAuth2RefreshTokenEntity.PARAM_NAME)
|
||||||
})
|
})
|
||||||
public class OAuth2RefreshTokenEntity implements OAuth2RefreshToken {
|
public class OAuth2RefreshTokenEntity implements OAuth2RefreshToken {
|
||||||
|
|
||||||
|
@ -60,10 +62,12 @@ public class OAuth2RefreshTokenEntity implements OAuth2RefreshToken {
|
||||||
public static final String QUERY_BY_CLIENT = "OAuth2RefreshTokenEntity.getByClient";
|
public static final String QUERY_BY_CLIENT = "OAuth2RefreshTokenEntity.getByClient";
|
||||||
public static final String QUERY_EXPIRED_BY_DATE = "OAuth2RefreshTokenEntity.getAllExpiredByDate";
|
public static final String QUERY_EXPIRED_BY_DATE = "OAuth2RefreshTokenEntity.getAllExpiredByDate";
|
||||||
public static final String QUERY_ALL = "OAuth2RefreshTokenEntity.getAll";
|
public static final String QUERY_ALL = "OAuth2RefreshTokenEntity.getAll";
|
||||||
|
public static final String QUERY_BY_NAME = "OAuth2RefreshTokenEntity.getByName";
|
||||||
|
|
||||||
public static final String PARAM_TOKEN_VALUE = "tokenValue";
|
public static final String PARAM_TOKEN_VALUE = "tokenValue";
|
||||||
public static final String PARAM_CLIENT = "client";
|
public static final String PARAM_CLIENT = "client";
|
||||||
public static final String PARAM_DATE = "date";
|
public static final String PARAM_DATE = "date";
|
||||||
|
public static final String PARAM_NAME = "name";
|
||||||
|
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -26,6 +25,11 @@ import com.nimbusds.jose.Requirement;
|
||||||
*/
|
*/
|
||||||
public final class PKCEAlgorithm extends Algorithm {
|
public final class PKCEAlgorithm extends Algorithm {
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
private static final long serialVersionUID = 7752852583210088925L;
|
||||||
|
|
||||||
public static final PKCEAlgorithm plain = new PKCEAlgorithm("plain", Requirement.REQUIRED);
|
public static final PKCEAlgorithm plain = new PKCEAlgorithm("plain", Requirement.REQUIRED);
|
||||||
|
|
||||||
public static final PKCEAlgorithm S256 = new PKCEAlgorithm("S256", Requirement.OPTIONAL);
|
public static final PKCEAlgorithm S256 = new PKCEAlgorithm("S256", Requirement.OPTIONAL);
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
*
|
||||||
|
* Portions copyright 2011-2013 The MITRE Corporation
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
*
|
||||||
|
* Portions copyright 2011-2013 The MITRE Corporation
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -28,7 +29,6 @@ import javax.persistence.Id;
|
||||||
import javax.persistence.NamedQueries;
|
import javax.persistence.NamedQueries;
|
||||||
import javax.persistence.NamedQuery;
|
import javax.persistence.NamedQuery;
|
||||||
import javax.persistence.Table;
|
import javax.persistence.Table;
|
||||||
import javax.persistence.Transient;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author jricher
|
* @author jricher
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 2017 The MITRE Corporation
|
* Copyright 2018 The MIT Internet Trust Consortium
|
||||||
* and the MIT Internet Trust Consortium
|
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue