Update auth-service's interface and auth-service
This commit is contained in:
parent
eded14f066
commit
049421bda9
@ -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.
|
||||
*/
|
||||
@ -39,9 +45,10 @@ Interface Response <T> {
|
||||
// Optional headers, which are set in an http-response
|
||||
httpHeaders: {
|
||||
// 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,
|
||||
// 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
|
||||
cookies: {
|
||||
[name: string]: string
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit b014ac46ec34d79dc5a27f3de4ec8e4669669553
|
||||
Subproject commit e400ea34ad3750d22ea3f3a7130df3492fabf306
|
Loading…
Reference in New Issue
Block a user