generated from ministryofjustice/opg-template-repository
-
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.
* feat/SSM-24: added auth middleware and refactored components. * feat/SSM-24: fixed invalid creds string for auth middleware_test.go. * feat/SSM-24: fixed service_cases_test.go. * feat/SSM-24: refactored solution to provide more pluggable auth handlers. * feat/SSM-24: minor clean-up, removed duplication. * feat/SSM-24: changed routes. * feat/SSM-24: minor fixes based on latest review of PR. * feat/SSM-24: removed redundant HashPassword * feat/SSM-24: added test authenticator on creds and added segregation to authenticator logic.
- Loading branch information
Showing
21 changed files
with
732 additions
and
317 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 |
---|---|---|
|
@@ -33,9 +33,10 @@ type ( | |
} | ||
|
||
Auth struct { | ||
ApiUsername string `envconfig:"API_USERNAME" default:"[email protected]"` | ||
JWTSecretARN string `envconfig:"JWT_SECRET_ARN" default:"local/jwt-key"` | ||
JWTExpiration int `envconfig:"JWT_EXPIRATION" default:"3600"` | ||
ApiUsername string `envconfig:"API_USERNAME" default:"[email protected]"` | ||
JWTSecretARN string `envconfig:"JWT_SECRET_ARN" default:"local/jwt-key"` | ||
CredentialsARN string `envconfig:"CREDENTIALS_ARN" default:"/local/local-credentials"` | ||
JWTExpiration int `envconfig:"JWT_EXPIRATION" default:"3600"` | ||
} | ||
|
||
HTTP struct { | ||
|
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
Oops, something went wrong.