Skip to content

Commit

Permalink
Fixed grant_type for formvalue
Browse files Browse the repository at this point in the history
  • Loading branch information
Fyb3roptik committed May 14, 2018
1 parent 7cc5cb2 commit 4f6a715
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion access.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ func (s *Server) HandleAccessRequest(w *Response, r *http.Request) *AccessReques
return nil
}

grantType := AccessRequestType(r.Form.Get("grant_type"))
grantType := AccessRequestType(r.FormValue("grant_type"))
if s.Config.AllowedAccessTypes.Exists(grantType) {
switch grantType {
case AUTHORIZATION_CODE:
Expand Down

0 comments on commit 4f6a715

Please sign in to comment.