mirror of
https://github.com/davidallendj/opaal.git
synced 2025-12-20 03:27:02 -07:00
Updated README.md and fixed issue fetching token
This commit is contained in:
parent
74fbcc4cbc
commit
2778dacdf5
2 changed files with 4 additions and 3 deletions
|
|
@ -1,7 +1,6 @@
|
|||
package server
|
||||
|
||||
import (
|
||||
"davidallendj/oidc-auth/internal/util"
|
||||
"fmt"
|
||||
"net/http"
|
||||
"net/url"
|
||||
|
|
@ -34,7 +33,7 @@ func FetchToken(code string, remoteUrl string, clientId string, clientSecret str
|
|||
"client_id": {clientId},
|
||||
"client_secret": {clientSecret},
|
||||
"state": {state},
|
||||
"redirect_uri": {util.EncodeURL(strings.Join(redirectUri, ","))},
|
||||
"redirect_uri": {strings.Join(redirectUri, ",")},
|
||||
}
|
||||
res, err := http.PostForm(remoteUrl, data)
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue