Skip to content

Commit

Permalink
Merge branch 'hotfix/21.1.5'
Browse files Browse the repository at this point in the history
  • Loading branch information
cslzchen committed Apr 15, 2021
2 parents c44d73e + 1a58265 commit 83dca4f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

We follow the CalVer (https://calver.org/) versioning scheme: YY.MINOR.MICRO.

21.1.5 (04-14-2021)
===================

Fix invalid access type for OAuth /authorize

21.1.4 (04-14-2021)
===================

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -245,11 +245,14 @@ protected ModelAndView buildAuthorizationForRequest (
.map(String::valueOf)
.orElseGet(OAuth20GrantTypes.AUTHORIZATION_CODE::getType)
.toUpperCase();
val accessType = context
var accessType = context
.getRequestParameter(OsfCasOAuth20Constants.ACCESS_TYPE)
.map(String::valueOf)
.orElse(OsfCasOAuth20CodeType.ONLINE.name())
.orElse(StringUtils.EMPTY)
.toUpperCase();
if (!OsfCasOAuth20CodeType.OFFLINE.name().equalsIgnoreCase(accessType)) {
accessType = OsfCasOAuth20CodeType.ONLINE.name();
}
val scopes = OAuth20Utils.parseRequestScopes(context);
val codeChallenge = context
.getRequestParameter(OAuth20Constants.CODE_CHALLENGE)
Expand Down

0 comments on commit 83dca4f

Please sign in to comment.