register new users in openfire? - cocoa

Is there anyway to register new users through an HTTP request in OpenFire. I want users to be able to sign up for my messaging service from within an app written in cocoa. Can this be done??

Take a look at the web administration console's create-a-user page (http://<openfire-server>:<port>/user-create.php). It uses a simple HTTP GET form to create a new user. I imagine you could pull the submit URL and various required fields from the source of that page and build your own GET request from your Cocoa app.

The easiest way to register a new user in Openfire is the UserService plugin. Just take a look at http://www.igniterealtime.org/projects/openfire/plugins/userservice/readme.html

you can use the available user service plugin which is available in openfire admin console, choose the plugin tab, choose available plugin and click the green + button to install user service plugin; second, go to the server tab ->server setting page, and make sure you enable the user service plugin
hope this can help the others~~~~~~~~~~

You can use rest API plugin in openfire
Go to plugin then go to available plugin then add rest API plugin then go to help page or
https://www.igniterealtime.org/projects/openfire/plugins/restapi/readme.html
You'll get all the rest API to perform operation in openfire

You can use in-band registration as specified in XEP-77 to add accounts from the XMPP connection you're going to need.

lookup about http-bind in your openfire server
http://localhost:9090/http-bind.jsp
I use strope js client lib work with my rails web project well, so I guess you can also use your own xmpp lib to realize it in your cocoa project

Related

Programmatically updating redirect_uris in a Google app OAuth client

I created an app in the Google Cloud console with an OAuth 2.0 client.
Can I programmatically update the list of allowed redirect URIs to allow different subdomains? (a.example.com, b.example.com, etc.)
The only way I was able to do it was via the GUI at https://console.cloud.google.com/apis/credentials which is not scalable.
I was looking for this same thing.
All I could find was this, but it is only for Identity Aware Proxy
https://cloud.google.com/sdk/gcloud/reference/iap/oauth-clients/create

Getting a warning when adding the new google one tap login in internally used web app and its dynamically created subdomains

I am trying to add the google one tap login to our internal website but I am getting the following warning. Although I have already added the main domain and sub domain(just to test) in Authorized redirect URIs and Authorized JavaScript origins but still getting this error.
I read in the document where it says no verification is required when the app is used internally.
Thanks in advance for any guidance
In order to add the new "Sign in with Google" option on the websites which are hosted on the dynamically created subdomains, one can use the solution provided by google is its integration via iframe.
The annoying part is that the documentation didn't mentioned this solution as another possible solution in its subdomain section.

How to access to google project from ui rather than link get from eclipse console

I have developed a tool for handling google sheet using spring boot with google sheet api. When I run the application from UI ,then eclipse console will show a link for OAuth authentication so that to get data in UI Eclipse console.I need to get back to console and take the link to browser for authentication. So my question is how to authenticate it through UI rather than going to console manually.
I selected react js as UI, and I added GoogleLogin to it
`
This tool is requir a google account to access<GoogleLogin
clientId="my client id"
redirectUri="http://localhost:8888/Callback"
scope="https://www.googleapis.com/auth/spreadsheets"
responseType="code"
accessType="offline"
buttonText="Choose account"
onSuccess=""
onFailure="" ></GoogleLogin>
</div>`
even though react js code worked,i will get the sheet data only after authenticating using link given in console.Please help me to solve this
You may redirect it directly but it would only work in case you are having that url working.
Let suppose, I'm hosting my application on http://localhost:8080/myProject then it would be redirect you to some url, you would be get that using this way.
Generate Credentials.json file while keeping redirect url blank.
Put this file to resources
Run project again
It will give you the response url, Do something for mapping that URL to your needed re-directional url.
Let me know if you need anything more in this.

ASP NET Boilerplate API project creation problem

It is a first time that I am using ASP.NET Boilerplate for API development. There are default features like multi tenancy and role management which I don’t want to use in the template. When creating a new project. in the project wizard I am choosing “Single Page Web Application” and I am unchecking the “Include login, register, user, role and tenant management pages” box. But when I do this, it is removing the connection between Swagger and Application Service. So the methods I am writing in Application Service are not being translated as API endpoints automatically.
Ideally, I want this: ABP Template + Empty API solution + swagger connection.
Am I missing something? Could you point me in the right direction? Thanks in advance.
"The methods that I am writing in the Application Service are not automatically translated as API endpoints." Regarding that, the app service should be translated automatically in the version that does not include login and roles, check the documentation. Regarding the swagger, you have to add it manually.

Programmatic access to Google API Console's functionality

I would like to configure the Google API services programmatically instead of having to go through the API Console. For example, I would like to be able to the following types of things programmatically:
Create OAuth and API Key credentials; this would include generating
the client id\secret, setting the redirect uri, downloading the
client_secrets.json file, etc.
Get the list of projects for a user
Enable\disable services for a specified project
Does Google provide any APIs for configuring services so that I don't have to use the API Console's GUI? All of the documentation I have seen has indicated that the only way to do this is through the API Console’s GUI.
You can use the Cloud Resource Manager API to get the list of projects for a user. Unfortunately, public APIs don't exist for the other things at this time.

Resources