mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-01 16:01:26 +02:00
Appleid (#3959)
* appleid oauth works but probably not implemented the best chore(deps): bump golang from 1.19.5-buster to 1.20.0-buster (#3949) Bumps golang from 1.19.5-buster to 1.20.0-buster. --- updated-dependencies: - dependency-name: golang dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Denis Mishin <dmishin@pomerium.com> implemented correct expiration, refresh and revoke chore(deps): bump golang from 1.19.5-buster to 1.20.0-buster (#3949) Bumps golang from 1.19.5-buster to 1.20.0-buster. --- updated-dependencies: - dependency-name: golang dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Denis Mishin <dmishin@pomerium.com> fixed lint issues and maybe ignored G101 * Update internal/identity/oauth/apple/apple.go Co-authored-by: Caleb Doxsey <caleb@doxsey.net> * Update internal/identity/oauth/apple/apple.go Co-authored-by: Caleb Doxsey <caleb@doxsey.net> * Update internal/identity/oauth/apple/apple.go Co-authored-by: Caleb Doxsey <caleb@doxsey.net> * Update internal/identity/oauth/apple/apple.go Co-authored-by: Caleb Doxsey <caleb@doxsey.net> * Update internal/identity/oauth/apple/apple.go Co-authored-by: Caleb Doxsey <caleb@doxsey.net> * Update internal/identity/oauth/apple/apple.go Co-authored-by: Caleb Doxsey <caleb@doxsey.net> --------- Co-authored-by: Caleb Doxsey <caleb@doxsey.net>
This commit is contained in:
parent
ac4a29ad46
commit
1d4474f7c5
3 changed files with 208 additions and 2 deletions
|
@ -56,7 +56,10 @@ func (a *Authenticate) Mount(r *mux.Router) {
|
|||
csrf.FormValueName("state"), // rfc6749#section-10.12
|
||||
csrf.CookieName(csrfKey),
|
||||
csrf.FieldName(csrfKey),
|
||||
csrf.SameSite(csrf.SameSiteLaxMode),
|
||||
// csrf.SameSiteLaxMode will cause browsers to reset
|
||||
// the session on POST. This breaks Appleid being able
|
||||
// to verify the csrf token.
|
||||
csrf.SameSite(csrf.SameSiteNoneMode),
|
||||
csrf.ErrorHandler(httputil.HandlerFunc(httputil.CSRFFailureHandler)),
|
||||
)(h)
|
||||
})
|
||||
|
@ -66,7 +69,7 @@ func (a *Authenticate) Mount(r *mux.Router) {
|
|||
|
||||
r.Path("/robots.txt").HandlerFunc(a.RobotsTxt).Methods(http.MethodGet)
|
||||
// Identity Provider (IdP) endpoints
|
||||
r.Path("/oauth2/callback").Handler(httputil.HandlerFunc(a.OAuthCallback)).Methods(http.MethodGet)
|
||||
r.Path("/oauth2/callback").Handler(httputil.HandlerFunc(a.OAuthCallback)).Methods(http.MethodGet, http.MethodPost)
|
||||
|
||||
a.mountDashboard(r)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue