Configuring Kaa (0.10.0) without an e-mail server - kaa

Is there anyway to configure Kaa without an e-mail service at first? I don't want to configure that yet, but want to set up my test users, etc.
Anywhere in the conf/ folder or do I have to muck with the Java?

You can register a user using the Kaa server REST API.
You're interested in the following methods:
POST /api/auth/createKaaAdmin
POST /api/admins/{tenantId}
The other possible solution is to use your existing email account.

Related

How to change default MaxScale credentials for GUI

MaxScale from v2.5 has a nice web Gui based on REST API. However it has default credentials admin:mariadb. Does any one know how to change this?
I've searched around in Mariadb Docs, but found the only options you can change is to add ssl cert's for the web gui to encrypt passing passwords and switch off\on the auth at all. Any ideas?
You can use the maxctrl command line client to manage users. The MaxScale administration tutorial has a section on how to create new users and to remove old ones.
The REST API tutorial also has a section on how to harden it for a more secure installation.

Authentication from wordpress REST API

After searching form wordpress documentation and google, i haven't find any proper way to achieve my goal : able to login to wordpress from custom third party application built with nodeJs.
The steps is check if couple username / password is administrator and process tasks on my external app.
Anyone has already used the REST API of wordpress to auth user? WITHOUT INSTALLING ANY PLUGIN , i just want to get response from server if my couple username/ password is true and is administrator, i know i can asks the database to check but i want to pass throught the built-in wp rest api.
Thank you.
The simple answer is no, and here is why
While cookie authentication is the only authentication mechanism
available natively within WordPress, plugins may be added to support
alternative modes of authentication that will work from remote
applications. Some example plugins are OAuth 1.0a Server, Application
Passwords, and JSON Web Tokens.
Source: Wordpress Official Handbook
However there is a painful and insecure way of doing it with plain HTTP authentication which is not recommended.
Recommended way of doing this securely is to get WordPress JWT or oAuth Server extension and deal with standard authentication process which is more convenient and secure, WordPress already lists them which are referenced in the quote. Hope this helps!

How to register user on MongooseIM server using .Net service

I am trying to implement the a .Net Web mechanism that will hold user profile and other activities.
On success the user will be able to chat hence have to be registered under MongooseIM server with JID creation.
This have to be done by the Asp .Net server to generate a JID for the user and execute the action similar to $sudo bin/mongooseimctl register username hostname password.
The similar activity will be done in case the Remove account is called to by user and Asp .Net will talk to MIM to execute the $sudo bin/mongooseimctl unregister username hostname command.
Do we have any way to achieve this by following ways.
1) Curl command we tried but its in PHP , but need more guidance how to do this.
2) Is MongooseIM having any facility to expose outside any web service to execute the mongooseimctl commands.
Appreciate for any leads given.
2) Is MongooseIM having any facility to expose outside any web service to execute the mongooseimctl commands.
Yes, it has. Since version 2.0.0beta2 we provide a REST API for backend services. More info about it can be found in our documentation:
http://mongooseim.readthedocs.io/en/latest/http-api/http-administration-api-documentation/
http://mongooseim.readthedocs.io/en/latest/swagger/index.html

openid connect for drupal tutorial

Here is the senario. I am trying to create a drupal 7 site that will serve as my openid connect server for another site that is being created in python. We want to have single sign on for the python site so that user will be synchronized between both the drupal site and the python site.
Question:
Does anyone know of a step by step tutorial (or can you tell me how) to setup a drupal site to do this?
I don't know anything about drupal and I am having a very difficult time trying to get the openid connect module properly configured to allow sso. I think I have successfully installed the openid connect, openid connect sso, and oauth 2 modules as well as the oauth2_server_php library.
Where I am stuck:
when I go into the oauth2 settings, the "Use openid connect" check field is not present. According to one tutorial I have seen, it's supposed to be there.
When you configure openid connect, the 3 url endpoints (Authorization endpoint, Token endpoint and UserInfo endpoint) are a mystery to me and I don't know what to put in them. Right now my drupal server is running on my local host webserver. "http://localhost/drupal"
So you are basically trying to implement the OpenID connect protocol and then use that from a python based website. I guess you already have googled that and trying to implement your own.
And the second portion is how will your python website use this newly created openid connect implementation.
We already have an openid connect implementation and also a step by step guide for sites wanting to use it.
If you want to consider an alternate, We have a step by step guide with sample code in Java as well as PHP on how to use miniOrange as your OpenID connect provider, here.
SO this guide will take care of your "another site in python".
Python samples are being added as we speak so stay tuned or ping me if you are interested.

User Authentication in BizTalk Published Orchestration as WCF-WSHttp

I have published an orchestration as a WCF web service using WCF_WSHttp bindings. I think we about the SSL certificate working. It will be open to the internet, thus anyone who knows the URL could call it and pass data; so we want to add user/pass authentication. We simply one the one client/vendor to have the ability to call this webservice, no one else.
I've been reading everywhere, and cannot find any specific steps.
I think I want something like Scenario #4 here: https://seroter.wordpress.com/biztalk-and-wcf-part-ii-security-patterns/, but I cannot see how he got the "Client Credentials" box to pop-up in BT-2010.
Best I can tell is I have to:
1) In BizTalk Admin Console - set Security Mode to TransportWithMessageCredential.
2) From here: https://msdn.microsoft.com/en-us/library/bb226482.aspx, I'm a little confused about the difference between Windows and Username. An outside vendor is calling our webservice, so they are not on our domain. Do I need to set up a service account? Or can I just make up a username and insert it here somewhere?
3) Do I have to make corresponding changes to the WCF web.config that was created by the BT-2010 "WCF Servcie Publishing Wizard"
It seems like your're looking for just Basic authentication on the transport layer? All you then have to do is to create an AD user or a local user on the BizTalk machine and set the Transport client credential type to Basic.

Resources