Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to define multiple policies #234

Open
adityarao1 opened this issue Jan 30, 2023 · 4 comments
Open

Unable to define multiple policies #234

adityarao1 opened this issue Jan 30, 2023 · 4 comments

Comments

@adityarao1
Copy link

I am creating two applications- android and IOS for fido authentication.
For this I have created two policies-

  1. Minimal (Any Hardware Authenticator) and
  2. Restricted (Apple PassKey)
    When I am calling the strong-key server for fido registration, it is always taking the 2nd policy.
    Are there any configuration level changes I have to do to make it work?
    Please suggest.
@mansibudhiraja
Copy link

mansibudhiraja commented Jan 31, 2023

Hi @adityarao1,

StrongKey FIDO Server (SKFS) manages the security policies with its Policy Module(PM) and if you are doing a default install, SKFS-PM creates eight different domains for SKFS with different policies.

Each cryptographic domain(did) can only have one policy being enforced at a time, so if you did add the two policies to the same domain, SKFS will most likely use the latest policy that was added.

Did you add two policies to the same domain?

If you do want to use two different policies, they have to be in two different domains. Once you have it set up with two domains, you can specify the right domain in the web service calls.

https://docs.strongkey.com/index.php/skfs-home/skfs-sample-code/skfs-api/skfs-rest/skfs-rest-preregister/skfs-rest-preregister-request

You can also look at the logs in the server.log in /usr/local/strongkey/payara5/glassfish/domains/domain1/logs folder or type in aslg and it will take you to the directory of your SKFS logs.

If you do want to use both your applications against the same domain then you will have to come up with a single policy that will be acceptable for both the applications.

You can always get and update the policy for any domain using the following links:
https://docs.strongkey.com/index.php/skfs-home/skfs-how-to/skfs-policy-questions/get-policy
https://docs.strongkey.com/index.php/skfs-home/skfs-how-to/skfs-policy-questions/update-policy

@adityarao1
Copy link
Author

@mansibudhiraja thanks, i got it working. But i want to add more domains. What steps I have to follow to do the same?

@mansibudhiraja
Copy link

mansibudhiraja commented Feb 3, 2023

Hi @adityarao1,

We are in the process of updating the document on how to create and add a new domain and we will send you a link tomorrow as soon as its up.

@push2085
Copy link
Contributor

push2085 commented Feb 4, 2023

Hi @adityarao1,
Our document is updated and here are the steps for you to create a new domain.
https://docs.strongkey.com/index.php/skfs-home/skfs-how-to/skfs-operations/create-a-new-domain

PS: Our supporters are encouraged to get SKFS, its updates and support at SourceForge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants