diff --git a/docs/interfaces/auth-service.txt b/docs/interfaces/auth-service.txt index e6a852b23..e01f5df20 100644 --- a/docs/interfaces/auth-service.txt +++ b/docs/interfaces/auth-service.txt @@ -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 { // 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 diff --git a/openslides-auth-service b/openslides-auth-service index b014ac46e..e400ea34a 160000 --- a/openslides-auth-service +++ b/openslides-auth-service @@ -1 +1 @@ -Subproject commit b014ac46ec34d79dc5a27f3de4ec8e4669669553 +Subproject commit e400ea34ad3750d22ea3f3a7130df3492fabf306