-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The Identity service is an OpenID Connect provider. Changing the strategy we use with OmniAuth can make this more obvious. We currently have implemented the OAuth2 strategy for Identity and extended it to take advantage of the OIDC logout feature. Switching to an OIDC strategy makes it more obvious what features the Identity service provides. It also, hopefully, makes things clearer for any future maintainer of the code.
- Loading branch information
1 parent
73a8ea8
commit da0e478
Showing
11 changed files
with
82 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
GOVUK_NOTIFY_API_KEY=override-locally | ||
CHECK_RECORDS_DOMAIN=http://check_records.localhost | ||
DFE_SIGN_IN_CLIENT_ID=checkrecordteacher | ||
DFE_SIGN_IN_ISSUER=test | ||
DFE_SIGN_IN_REDIRECT_URL=test | ||
DFE_SIGN_IN_SECRET=override-locally | ||
GOVUK_NOTIFY_API_KEY=override-locally | ||
HOSTING_DOMAIN=http://qualifications.localhost | ||
HOSTING_ENVIRONMENT=local | ||
IDENTITY_API_DOMAIN=override-locally | ||
IDENTITY_CLIENT_ID=override-locally | ||
IDENTITY_CLIENT_SECRET=override-locally | ||
QUALIFICATIONS_API_URL=https://preprod-teacher-qualifications-api.education.gov.uk/ | ||
QUALIFICATIONS_API_FIXED_TOKEN=token | ||
QUALIFICATIONS_API_URL=https://preprod-teacher-qualifications-api.education.gov.uk/ | ||
SUPPORT_PASSWORD=test | ||
SUPPORT_USERNAME=test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,11 +8,10 @@ | |
OpenStruct.new( | ||
email: "[email protected]", | ||
name: "Test User", | ||
given_name: "Test", | ||
family_name: "User", | ||
trn: "123456", | ||
date_of_birth: "1986-01-02" | ||
) | ||
first_name: "Test", | ||
last_name: "User" | ||
), | ||
extra: OpenStruct.new(raw_info: OpenStruct.new(birthdate: "1986-01-02", trn: "123456")) | ||
) | ||
end | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,16 +15,20 @@ def given_identity_auth_is_mocked | |
{ | ||
provider: "identity", | ||
info: { | ||
date_of_birth: "1986-01-02", | ||
email: "[email protected]", | ||
family_name: "User", | ||
given_name: "Test", | ||
name: "Test User", | ||
trn: "123456" | ||
first_name: "User", | ||
last_name: "Test", | ||
name: "Test User" | ||
}, | ||
credentials: { | ||
token: "token", | ||
expires_at: (Time.zone.now + 1.hour).to_i | ||
expires_in: 1.hour.to_i | ||
}, | ||
extra: { | ||
raw_info: { | ||
birthdate: "1986-01-02", | ||
trn: "123456" | ||
} | ||
} | ||
} | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,16 +19,21 @@ def given_identity_auth_is_mocked | |
{ | ||
provider: "identity", | ||
info: { | ||
date_of_birth: "1986-01-02", | ||
email: "[email protected]", | ||
family_name: "Trained", | ||
given_name: "Not", | ||
name: "Not Trained", | ||
trn: "0000000" | ||
email_verified: "True", | ||
first_name: "Trained", | ||
last_name: "Not", | ||
name: "Not Trained" | ||
}, | ||
credentials: { | ||
token: "no-itt-token", | ||
expires_at: (Time.zone.now + 1.hour).to_i | ||
expires_in: 1.hour.to_i | ||
}, | ||
extra: { | ||
raw_info: { | ||
birthdate: "1986-01-02", | ||
trn: "0000000" | ||
} | ||
} | ||
} | ||
) | ||
|