-
Notifications
You must be signed in to change notification settings - Fork 157
Expand file tree
/
Copy pathResponseMode.java
More file actions
42 lines (34 loc) · 1.14 KB
/
ResponseMode.java
File metadata and controls
42 lines (34 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.microsoft.aad.msal4j;
/**
* Values for possible methods in which AAD can send the authorization result back to the calling
* application
*/
public enum ResponseMode {
/**
* Authorization result is encoded as HTML form values that are transmitted via a HTTP POST
* to the redirect URL
*/
FORM_POST("form_post"),
/**
* Authorization result returned as query string in the redirect URL when redirecting back to the
* client application.
* @deprecated Query response mode is no longer supported. Use FORM_POST instead. If provided, it will be automatically overridden to FORM_POST.
*/
@Deprecated
QUERY("query"),
/**
* Authorization result is returned in the fragment added to the redirect URL when redirecting
* back to the client application
*/
FRAGMENT("fragment");
private String responseMode;
ResponseMode(String responseMode) {
this.responseMode = responseMode;
}
@Override
public String toString() {
return this.responseMode;
}
}