Merge pull request #5630 from GabrielInTheWorld/update-auth-service-interface
Update auth-service's interface and auth-service
This commit is contained in:
commit
77c03b5675
@ -32,6 +32,12 @@ Interface Ticket {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// This describes, which information is received by requesting `api/authenticate`.
|
||||||
|
interface LoginInformation {
|
||||||
|
userId: number;
|
||||||
|
sessionId: string;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Describes an http-response, which is sent back to any requesting service.
|
* Describes an http-response, which is sent back to any requesting service.
|
||||||
*/
|
*/
|
||||||
@ -39,9 +45,10 @@ Interface Response <T> {
|
|||||||
// Optional headers, which are set in an http-response
|
// Optional headers, which are set in an http-response
|
||||||
httpHeaders: {
|
httpHeaders: {
|
||||||
// Authentication is passed, if a new access-token is returned.
|
// Authentication is passed, if a new access-token is returned.
|
||||||
|
// It is written with a capital 'A', so the value of this header is 'Authentication: "..."'.
|
||||||
authentication?: string,
|
authentication?: string,
|
||||||
// Cookies, like one containing 'refreshId=(Cookie as string)', if a user signs in, are passed.
|
// Cookies, like one containing 'refreshId=(Cookie as string)', if a user signs in, are passed.
|
||||||
// Lifetime of one cookie is about 24h.
|
// Lifetime of one cookie is the browser-session.
|
||||||
// Flags for the cookies are: HttpOnly, Secure
|
// Flags for the cookies are: HttpOnly, Secure
|
||||||
cookies: {
|
cookies: {
|
||||||
[name: string]: string
|
[name: string]: string
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit b014ac46ec34d79dc5a27f3de4ec8e4669669553
|
Subproject commit e400ea34ad3750d22ea3f3a7130df3492fabf306
|
Loading…
Reference in New Issue
Block a user