mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-10-03 08:19:04 +02:00
refactor: move iss param handling to Fosite
This commit is contained in:
@@ -21,18 +21,15 @@ const parRequestURIPrefix = "urn:ietf:params:oauth:request_uri:"
|
||||
type authorizationHandler struct {
|
||||
provider fosite.OAuth2Provider
|
||||
authorizationService *authorizationService
|
||||
baseURL string
|
||||
}
|
||||
|
||||
func newAuthorizationHandler(
|
||||
provider fosite.OAuth2Provider,
|
||||
authorizationService *authorizationService,
|
||||
baseURL string,
|
||||
) *authorizationHandler {
|
||||
return &authorizationHandler{
|
||||
provider: provider,
|
||||
authorizationService: authorizationService,
|
||||
baseURL: baseURL,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -99,8 +96,6 @@ func (h *authorizationHandler) authorize(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
response.AddParameter("iss", h.baseURL)
|
||||
|
||||
// fosite renders an auto-submitting HTML page for response_mode=form_post, which needs a relaxed CSP
|
||||
h.relaxCSPForFormPost(c, ar)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user