OAuth2
Service
Interface
constructor
parent_
interface
reserved
name
can_
process
extract_
authorization_
code
get_
authentication_
policy
get_
authentication_
uri
get_
client_
id
get_
client_
secret
get_
display_
name
get_
flags
get_
name
get_
redirect_
uri
get_
refresh_
uri
guess_
can_
process
prepare_
authentication_
uri_
query
prepare_
get_
token_
form
prepare_
get_
token_
message
prepare_
refresh_
token_
form
prepare_
refresh_
token_
message
GJS API Reference
EDataServer-1.2
EDataServer
OAuth2ServiceInterface
Class OAuth2ServiceInterface
Hierarchy
OAuth2ServiceInterface
Index
Constructors
constructor
Properties
parent_
interface
reserved
name
Methods
can_
process
extract_
authorization_
code
get_
authentication_
policy
get_
authentication_
uri
get_
client_
id
get_
client_
secret
get_
display_
name
get_
flags
get_
name
get_
redirect_
uri
get_
refresh_
uri
guess_
can_
process
prepare_
authentication_
uri_
query
prepare_
get_
token_
form
prepare_
get_
token_
message
prepare_
refresh_
token_
form
prepare_
refresh_
token_
message
Constructors
constructor
new OAuth2
Service
Interface
(
)
:
OAuth2ServiceInterface
Returns
OAuth2ServiceInterface
Properties
parent_
interface
parent_
interface
:
TypeInterface
reserved
reserved
:
object
[]
Static
name
name
:
string
Methods
can_
process
can_
process
(
service
:
OAuth2Service
, source
:
EDataServer
.
Source
)
:
boolean
Parameters
service:
OAuth2Service
source:
EDataServer
.
Source
Returns
boolean
extract_
authorization_
code
extract_
authorization_
code
(
service
:
OAuth2Service
, source
:
EDataServer
.
Source
, page_title
:
string
, page_uri
:
string
, page_content
:
string
)
:
[
boolean
,
string
]
Parameters
service:
OAuth2Service
source:
EDataServer
.
Source
page_title:
string
page_uri:
string
page_content:
string
Returns
[
boolean
,
string
]
get_
authentication_
policy
get_
authentication_
policy
(
service
:
OAuth2Service
, source
:
EDataServer
.
Source
, uri
:
string
)
:
OAuth2ServiceNavigationPolicy
Parameters
service:
OAuth2Service
source:
EDataServer
.
Source
uri:
string
Returns
OAuth2ServiceNavigationPolicy
get_
authentication_
uri
get_
authentication_
uri
(
service
:
OAuth2Service
, source
:
EDataServer
.
Source
)
:
string
Parameters
service:
OAuth2Service
source:
EDataServer
.
Source
Returns
string
get_
client_
id
get_
client_
id
(
service
:
OAuth2Service
, source
:
EDataServer
.
Source
)
:
string
Parameters
service:
OAuth2Service
source:
EDataServer
.
Source
Returns
string
get_
client_
secret
get_
client_
secret
(
service
:
OAuth2Service
, source
:
EDataServer
.
Source
)
:
string
Parameters
service:
OAuth2Service
source:
EDataServer
.
Source
Returns
string
get_
display_
name
get_
display_
name
(
service
:
OAuth2Service
)
:
string
Parameters
service:
OAuth2Service
Returns
string
get_
flags
get_
flags
(
service
:
OAuth2Service
)
:
number
Parameters
service:
OAuth2Service
Returns
number
get_
name
get_
name
(
service
:
OAuth2Service
)
:
string
Parameters
service:
OAuth2Service
Returns
string
get_
redirect_
uri
get_
redirect_
uri
(
service
:
OAuth2Service
, source
:
EDataServer
.
Source
)
:
string
Parameters
service:
OAuth2Service
source:
EDataServer
.
Source
Returns
string
get_
refresh_
uri
get_
refresh_
uri
(
service
:
OAuth2Service
, source
:
EDataServer
.
Source
)
:
string
Parameters
service:
OAuth2Service
source:
EDataServer
.
Source
Returns
string
guess_
can_
process
guess_
can_
process
(
service
:
OAuth2Service
, protocol
:
string
, hostname
:
string
)
:
boolean
Parameters
service:
OAuth2Service
protocol:
string
hostname:
string
Returns
boolean
prepare_
authentication_
uri_
query
prepare_
authentication_
uri_
query
(
service
:
OAuth2Service
, source
:
EDataServer
.
Source
, uri_query
:
HashTable
<
string
|
number
|
symbol
,
string
|
number
|
boolean
>
)
:
void
Parameters
service:
OAuth2Service
source:
EDataServer
.
Source
uri_query:
HashTable
<
string
|
number
|
symbol
,
string
|
number
|
boolean
>
Returns
void
prepare_
get_
token_
form
prepare_
get_
token_
form
(
service
:
OAuth2Service
, source
:
EDataServer
.
Source
, authorization_code
:
string
, form
:
HashTable
<
string
|
number
|
symbol
,
string
|
number
|
boolean
>
)
:
void
Parameters
service:
OAuth2Service
source:
EDataServer
.
Source
authorization_code:
string
form:
HashTable
<
string
|
number
|
symbol
,
string
|
number
|
boolean
>
Returns
void
prepare_
get_
token_
message
prepare_
get_
token_
message
(
service
:
OAuth2Service
, source
:
EDataServer
.
Source
, message
:
Soup
.
Message
)
:
void
Parameters
service:
OAuth2Service
source:
EDataServer
.
Source
message:
Soup
.
Message
Returns
void
prepare_
refresh_
token_
form
prepare_
refresh_
token_
form
(
service
:
OAuth2Service
, source
:
EDataServer
.
Source
, refresh_token
:
string
, form
:
HashTable
<
string
|
number
|
symbol
,
string
|
number
|
boolean
>
)
:
void
Parameters
service:
OAuth2Service
source:
EDataServer
.
Source
refresh_token:
string
form:
HashTable
<
string
|
number
|
symbol
,
string
|
number
|
boolean
>
Returns
void
prepare_
refresh_
token_
message
prepare_
refresh_
token_
message
(
service
:
OAuth2Service
, source
:
EDataServer
.
Source
, message
:
Soup
.
Message
)
:
void
Parameters
service:
OAuth2Service
source:
EDataServer
.
Source
message:
Soup
.
Message
Returns
void
OAuth2
Service
Interface
constructor
parent_
interface
reserved
name
can_
process
extract_
authorization_
code
get_
authentication_
policy
get_
authentication_
uri
get_
client_
id
get_
client_
secret
get_
display_
name
get_
flags
get_
name
get_
redirect_
uri
get_
refresh_
uri
guess_
can_
process
prepare_
authentication_
uri_
query
prepare_
get_
token_
form
prepare_
get_
token_
message
prepare_
refresh_
token_
form
prepare_
refresh_
token_
message
base64:eyJwYWdlTmF2aWdhdGlvbiI6W3siY2xhc3NOYW1lcyI6InRzZC1raW5kLWNvbnN0cnVjdG9yIHRzZC1wYXJlbnQta2luZC1jbGFzcyIsImhyZWYiOiJFRGF0YVNlcnZlcl8xXzIuRURhdGFTZXJ2ZXIuT0F1dGgyU2VydmljZUludGVyZmFjZS5odG1sI2NvbnN0cnVjdG9yIiwibmFtZSI6ImNvbnN0cnVjdG9yIiwiY2hpbGRyZW4iOltdLCJpc0V4dGVybiI6ZmFsc2UsImlzSW50ZXJuIjp0cnVlfSx7ImNsYXNzTmFtZXMiOiJ0c2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