Access password with two different configurations

Any issue about Cyclos 4 scripting and Webservices

Moderators: hugo, alexandre, rmvanarkel

Post Reply
martin.rueegg
Posts: 80
Joined: Thu Aug 11, 2016 12:38 pm
Location: Bristol, UK
Contact:

Access password with two different configurations

Post by martin.rueegg » Thu Sep 07, 2017 6:57 am

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.
Cyclos v4.8.2 w/ Social license
Technical Manager, Bristol Pound CIC, Bristol, UK, http://bristolpound.org

admin
Site Admin
Posts: 1413
Joined: Mon Jan 24, 2005 10:31 am

Re: Access password with two different configurations

Post by admin » Thu Sep 07, 2017 9:59 am

Yes you will need another channel.

Post Reply