This repository was archived by the owner on Mar 19, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
owncloudComLibrary/src/main/java/com/owncloud/android/lib Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ public class HttpConstants {
56
56
public static final String OAUTH_HEADER_GRANT_TYPE = "grant_type" ;
57
57
public static final String OAUTH_HEADER_REDIRECT_URI = "redirect_uri" ;
58
58
public static final String OAUTH_HEADER_REFRESH_TOKEN = "refresh_token" ;
59
+ public static final String OAUTH_HEADER_CODE_VERIFIER = "code_verifier" ;
59
60
60
61
/***********************************************************************************************************
61
62
************************************************ CONTENT TYPES ********************************************
Original file line number Diff line number Diff line change @@ -39,14 +39,16 @@ sealed class TokenRequestParams(
39
39
clientAuth : String ,
40
40
grantType : String ,
41
41
val authorizationCode : String ,
42
- val redirectUri : String
42
+ val redirectUri : String ,
43
+ val codeVerifier : String ,
43
44
) : TokenRequestParams(tokenEndpoint, clientAuth, grantType) {
44
45
45
46
override fun toRequestBody (): RequestBody =
46
47
FormBody .Builder ()
47
48
.add(HttpConstants .OAUTH_HEADER_AUTHORIZATION_CODE , authorizationCode)
48
49
.add(HttpConstants .OAUTH_HEADER_GRANT_TYPE , grantType)
49
50
.add(HttpConstants .OAUTH_HEADER_REDIRECT_URI , redirectUri)
51
+ .add(HttpConstants .OAUTH_HEADER_CODE_VERIFIER , codeVerifier)
50
52
.build()
51
53
}
52
54
You can’t perform that action at this time.
0 commit comments