Skip to content
This repository has been archived by the owner on Dec 7, 2020. It is now read-only.

Commit

Permalink
Revocation URL
Browse files Browse the repository at this point in the history
- grabbing the revocation from the config or idp config
  • Loading branch information
gambol99 committed Feb 10, 2017
1 parent 1e5820c commit 0436d07
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@

#### **2.0.4**

FEATURES:
* Grabbing the revocation-url from the idp config if user override is not specified [#PR193](https://github.com/gambol99/keycloak-proxy/pull/193)

#### **2.0.3**

FEATURES
FEATURES:
* Adding the PROXY_ENCRYPTION_KEY environment varable [#PR191](https://github.com/gambol99/keycloak-proxy/pull/191)

#### **2.0.2**
Expand Down
9 changes: 5 additions & 4 deletions handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -306,13 +306,14 @@ func (r *oauthProxy) logoutHandler(cx *gin.Context) {
}()
}

// step: get the revocation endpoint from either the idp and or the user config
revocationURL := defaultTo(r.config.RevocationEndpoint, r.idp.EndSessionEndpoint.String())

// step: do we have a revocation endpoint?
if r.config.RevocationEndpoint != "" {
if revocationURL != "" {
client, err := r.client.OAuthClient()
if err != nil {
log.WithFields(log.Fields{
"error": err.Error(),
}).Errorf("unable to retrieve the openid client")
log.WithFields(log.Fields{"error": err.Error()}).Errorf("unable to retrieve the openid client")

cx.AbortWithStatus(http.StatusInternalServerError)
return
Expand Down

0 comments on commit 0436d07

Please sign in to comment.