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

Need documentation on how to use login by token : LoginType.mLoginToken #1603

Open
1 task
Alwein opened this issue Nov 7, 2023 · 5 comments
Open
1 task

Comments

@Alwein
Copy link

Alwein commented Nov 7, 2023

Preflight Checklist

  • I could not find a solution in the existing issues, docs, nor discussions

Describe your problem

On the official Android SDK, we can login with access token using Matrix.authenticationService().createSessionFromSso(config, credentials)

While searching in the Dart SDK, i didn't find a similar method to login. Is LoginType.mLoginToken the equivalent of create session from sso on Android side ?

Describe your ideal solution

Can you add a sample of how to login using token to your readme or example file ?

Version

0.22.6

Security requirements

No response

Additional Context

No response

Tasks

Preview Give feedback
@MichalNemec
Copy link

as a workaround you can use
matrix_api_lite:
git:
url: https://github.com/layerinfinity/dart_matrix_api_lite.git
commit: f819b6d

@krille-chan
Copy link
Contributor

Hey, we plan to improve the documentation for this. Until this you can take a look into this file where it is implemented in FluffyChat: https://github.com/krille-chan/fluffychat/blob/main/lib/pages/homeserver_picker/homeserver_picker.dart#L117

@krille-chan
Copy link
Contributor

So the action point here would be to write a markdown file /doc/sso_login.md and describe how to login with single sign on

@Alwein
Copy link
Author

Alwein commented Nov 8, 2023

Thank you, @MichalNemec and @krille-chan , for your prompt replies. I attempted to integrate my own login method using matrix_api_lite; however, it turns out that I do not require a complete SSO login mechanism. Instead, I simply need to log in with a token that I already possess, like it is described at the very end of this page

@PhantomRay
Copy link
Contributor

PR created: #1774

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

No branches or pull requests

4 participants