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

[Other]: Help me about authenticated users #2754

Closed
vzenix opened this issue Oct 22, 2024 · 5 comments
Closed

[Other]: Help me about authenticated users #2754

vzenix opened this issue Oct 22, 2024 · 5 comments
Labels
other Indicates an issue or PR lacks a `triage/foo` label and requires one.

Comments

@vzenix
Copy link

vzenix commented Oct 22, 2024

What would you like to share?

I find it, https://doc.rentsoft.cn/restapi/apis/authenticationManagement/getAdminToken

¿Can customize it?, I want to add into an app mobile this chat, but i need costomize the autentication for accept the session of this mobile app

¿Someone can help me?

Additional information

No response

@vzenix vzenix added the other Indicates an issue or PR lacks a `triage/foo` label and requires one. label Oct 22, 2024
@OpenIM-Robot
Copy link

Hello! Thank you for filing an issue.

If this is a bug report, please include relevant logs to help us debug the problem.

Join slack 🤖 to connect and communicate with our developers.

@vzenix
Copy link
Author

vzenix commented Oct 23, 2024

Join slack 🤖 to connect and communicate with our developers.

Link to slack doesn't work, ¿can share again?

@FGadvancer
Copy link
Member

Hello, I saw your question regarding custom token verification. The getAdminToken mentioned in the documentation is one way for openimserver to obtain a verification token. If you want to customize the way you get the token, it falls under your own business logic. If you have your own server, there should be two tokens: one for your own server and one for openimserver. You can directly call the API in the documentation to get the admin token and then use it to call the IM interface to get the user token. If not, openim also provides an open-source chat repository that simulates user login (chat), password input, and other operations in an app scenario. When your mobile app obtains the token, it should get two tokens: one for the business system and one for openimserver. As for the business system token, you are completely free to customize how it is generated. I hope this answers your question.
Relationship Architecture Diagram

@skiffer-git
Copy link
Member

image

@skiffer-git
Copy link
Member

Your own business system is represented as "Your App Server" in the diagram. User login, registration, and authentication are handled by your business system.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
other Indicates an issue or PR lacks a `triage/foo` label and requires one.
Projects
None yet
Development

No branches or pull requests

4 participants