tigase-server | Tigase XMPP Server
kandi X-RAY | tigase-server Summary
kandi X-RAY | tigase-server Summary
tigase-server
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Entry point
- Export a user s roster
- Parse parameters
- Get the AuthRepository for the given classname resource
- This method does the actual processing
- Query authentication repositories
- Adds a resource connection
- Do not login
- Process the incoming packet
- Creates an XMPP stream opened event
- Post - processing the stanza
- Initialize the data repository
- Handle start element event
- Overrides default implementation to set properties
- Returns the SHA - 256 digest of the given password
- This method does the actual processing of a packet
- Processes a command
- Runs the version
- Overrides default defaults to defaults
- Determine if a given JID is a to - local component
- Runs the script
- Get the total number of CID connections
- Runs the selector
- Validate the database schema
- Sets the properties for this component
- Overrides the default set properties
tigase-server Key Features
tigase-server Examples and Code Snippets
Community Discussions
Trending Discussions on tigase-server
QUESTION
I am trying to integrate Tigase to use my custom MySQL database to authenticate users, gets rosters and vCards. I setup the "Custom Authentication Connectors" as described at https://docs.tigase.net/tigase-server/8.0.0/Administration_Guide/html/#customAuthentication however, it only seems to authenticate users I've already added to the local Tigase database. Is it possible for Tigase to automatically create the user when the user has successfully authenticated? And, how can I setup Tigase to get the user's roster and/or vCard from my custom database?
I've tried setting up the "Custom Authentication Connectors" as described at https://docs.tigase.net/tigase-server/8.0.0/Administration_Guide/html/#customAuthentication, however, for users that only exists in my custom database, it allows login, but throws an error when I try to create a room or add a user to my roster as "tigase.db.UserNotFoundException: User does not exist" and "WARNING: NotAuthorizedException for packet."
Here is the config I am using based on https://docs.tigase.net/tigase-server/8.0.0/Administration_Guide/html/#customAuthentication:
...ANSWER
Answered 2019-Aug-30 at 16:57The answer to your question: " Is it possible for Tigase to automatically create the user when the user has successfully authenticated" is actually answered in the linked documentation:
To keep user accounts in sync between the authentication database and the main user database you have to add following option to the end of the database connection URL:
autoCreateUser=true
Currently it's not possible to retrieve user data from custom repository by only changing / adjusting configuration.
If you want to completely manage the users using your own database, then you'd have to implement UserRepository interface by yourself (you may take a look at JDBCRepository implementation to get an idea how to go about that)
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install tigase-server
You can use tigase-server like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the tigase-server component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page