Skip to content
This repository was archived by the owner on Jul 21, 2022. It is now read-only.
This repository was archived by the owner on Jul 21, 2022. It is now read-only.

oauth authentifizierung #4

@tabsl

Description

@tabsl

ich würde folgende vorgehensweise vorschlagen, um sich per oauth zu authentifizieren.

  • zwei neue felder in oxuser: OXAUTH (tinyint) und OXAUTHKEY (varchar)
  • OXAUTHKEY = api-key
  • OXAUTH = user darf api nutzen: ja/nein

mit dem vorhandenen apikey kann ein user dann an die api andocken.
wird bei einem request ein gültiger api-key gefunden (OXAUTH true) darf der user sich am REST anmelden,
bekommt einen session-token, welcher eine definierte zeit gültig ist und kann loslegen.

fragen:
a) alle damit einverstanden?
b) wollen wir die vorgänge loggen? (anmeldeversuch, ip, etc?)
c) wie lang soll der token gültig sein?

Joscha to english
I think we should do it in the following way for oAuth:

  • Adding two new fields in oxuser: OXAUTH (tinyint) and OXAUTHKEY (varchar)
  • OXAUTHKEY = api-key
  • OXAUTH = user is able to use the api: yes/no

With the apikey the user could authentificate against the api. Is a valid key found, the session-token will be generated and set for a limited time.

questions:
a) anyone ack?
b) should we track these things (Loggins, IP,...)
c) how long should a token be valid?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions