Hi there,
I am not sure, but it seems that version 1.5.0 has some issues with configuring Roles, Identiy and AppToken when using the GUI …
What I did:
- I added a new role usign Settings–>Security–>Roles
- I added a new identity using Settings–>Identities
–> here I was not able to assign my newly created role (I was abel to assign ‘old’ roles) - I created a new AppToken based on the identity & role
- I added -Authentication -Role to my endpoint definition
- finally I tried to access the Endpoint using the AppToken
–> I always get an unauthorized (401) error
Since I got the above scenario working with Release 1.4.9 I switched back and tried it once again using Release 1.4.9 …
I did the follwoing steps:
- I added a new role
- I added a new identity and assigned it the role created in step 1
- I used the API to create a new token
–> Invoke-RestMethod “http://itshopdev.ethz.ch:5000/api/v1/apptoken/grant/$Identity_Id” -WebSession $Session - I added -Authentication -Role to my endpoint definition
- finally I tried to access the Endpoint using the AppToken and everythign worked fine
Finally I swithced back to Release 1.5.0 and everthing worked fine …
Am I doing something wrong or did a bug sneak in with release 1.5.0?
Cheers Paul
Product: PowerShell Universal
Version: 1.5.0