Page 1 of 1

Access password with two different configurations

Posted: Thu Sep 07, 2017 6:57 am
by martin.rueegg
Hello

I have the following configurations;

- network default (default)
\- PIN access (pin)

I also have a user defined channel "myChannel". This channel is enabled on both configurations, however
  • on default, it is set to use the login password as access password, while
  • on pin it is set to use the PIN as access password
When now using the web service/REST API to get the available access passwords on this channel, then only the login password is listed. It seems, the second config is ignored:

Code: Select all

 curl -X GET --header 'Channel: myChannel' --header 'Accept: application/json' 'https://demo.cyclos.org/api/auth/data-for-login'
returns

Code: Select all

{
	"principalTypes": [{
		"id": "xxxx",
		"name": "Login name",
		"internalName": "username",
		"kind": "username",
		"allowManualInput": false
	}],
	"defaultPrincipalType": "username",
	"loginPasswordInput": {
		"id": "xxxx",
		"name": "Login password",
		"internalName": "loginpassword",
		"inputMethod": "textBox",
		"mode": "manual",
		"minLength": 6,
		"maxLength": 32
	},
	"forgotPasswordMediums": ["email"]
}
Is there any way to define the config or do I have to create a new channel?

Thanks,
Martin.

Re: Access password with two different configurations

Posted: Thu Sep 07, 2017 9:59 am
by admin
Yes you will need another channel.