Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ContactMgmt HTTP Authorization Header #185

Closed
christian-frei opened this issue Apr 21, 2023 · 5 comments
Closed

ContactMgmt HTTP Authorization Header #185

christian-frei opened this issue Apr 21, 2023 · 5 comments

Comments

@christian-frei
Copy link

In der OpenApi Spec zum Contact Management steht:

The TI-Messenger-Client uses a Matrix-OpenID-Token from his Messenger-Service for
authentication on all REST operations. The bearer token can be obtained from the
homeserver. (POST /_matrix/client/r0/user/{userId}/openid/request_token).

Wie sieht der HTTP Header genau aus?

Können Sie das bitte in der open-api spec ergänzen? (und hier schon mal vorgängig angeben, damit ich die Implementierung abschliessen kann)

Besten Dank

@gem-lat
Copy link
Contributor

gem-lat commented Apr 24, 2023

Hallo @christian-frei ,

hier ein Beispiel für die userID: @alice:example.com:

POST /_matrix/client/r0/user/%40alice%3Aexample.com/openid/request_token HTTP/1.1
Content-Type: application/json

{}

Quellen:
https://matrix.org/docs/spec/client_server/r0.6.0.html#post-matrix-client-r0-user-userid-openid-request-token
https://matrix.org/docs/api/#post-/_matrix/client/v3/user/-userId-/openid/request_token

@christian-frei
Copy link
Author

Danke fuer die Antwort, aber ich glaube, Sie haben meine Frage missverstanden.

Eigentlich war die Frage, wie der HTTP Header aussehen soll, der bei der Kommunikation mit allen /tim-contact-mgmt/v1.0/ REST Ressourcen verlangt wird:

The TI-Messenger-Client uses a Matrix-OpenID-Token from his Messenger-Service for authentication on all REST operations.

Koennen Sie bitte einen Beispiel Header zeigen (und auch in der OpenAPI Spezifikation nachtragen)?

@Johennes
Copy link
Contributor

Johennes commented Aug 8, 2024

Es handelt sich um ein Bearer Token, dass wie hier beschrieben im Authorization-Header gesetzt wird.

@Johennes Johennes closed this as not planned Won't fix, can't repro, duplicate, stale Aug 8, 2024
@christian-frei
Copy link
Author

danke für die schnelle Antwort :-)

@Johennes
Copy link
Contributor

Johennes commented Aug 9, 2024

"Nur" 15 Monate zu spät, ich weiß. 😅🙈

Wir versuchen hier besser zu werden in Zukunft.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants