@@ -16,7 +16,7 @@ jargons
1616 login resolver has optional param state
1717 -if state found in store, split with @@
1818 - if len > 1 -> response type is code and has code + challenge
19- - set `nonce@@ code` for createAuthToken request so that `c_hash` can be generated
19+ - set `nonce, code` for createAuthToken request so that `c_hash` can be generated
2020 - do not add `nonce` to id_token in code flow, instead set `c_hash` and `at_hash`
2121
2222
@@ -26,8 +26,8 @@ jargons
2626 - add &nonce to login redirect url
2727 login resolver has optional param state
2828 - if state found in store, split with @@
29- - if len < 1 -> response type is token / id_token and has nonce
30- - send received nonce for createAuthToken
29+ - if len < 1 -> response type is token / id_token and value is nonce
30+ - send received nonce for createAuthToken with empty code value
3131 - set `nonce` and `at_hash` in `id_token`
3232**/
3333
@@ -277,7 +277,7 @@ func AuthorizeHandler() gin.HandlerFunc {
277277 if responseType == constants .ResponseTypeToken || responseType == constants .ResponseTypeIDToken {
278278 hostname := parsers .GetHost (gc )
279279 // rollover the session for security
280- authToken , err := token .CreateAuthToken (gc , user , claims .Roles , scope , claims .LoginMethod , nonce )
280+ authToken , err := token .CreateAuthToken (gc , user , claims .Roles , scope , claims .LoginMethod , nonce , "" )
281281 if err != nil {
282282 log .Debug ("CreateAuthToken failed: " , err )
283283 handleResponse (gc , responseMode , loginURL , redirectURI , loginError , http .StatusOK )
0 commit comments