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

Configurable seeding #228

Closed
xmichaelx opened this issue Mar 25, 2019 · 1 comment
Closed

Configurable seeding #228

xmichaelx opened this issue Mar 25, 2019 · 1 comment
Assignees

Comments

@xmichaelx
Copy link
Contributor

Current seeding mechanism is hardcoded could we have the same logic but imported from a configuration file? This would ease the trouble for devopses when deploying new instances of IS by allowing for having some parts preconfigured. Also instead of constants we should opt for options

Sth like the following:

{
    "Roles": [
        {
            "Name" : "",
            "Claims" : [],
            "IsAdminRole" : true // this is for knowing which role name to configure as the main one
        }
    ],
    "Resources": [
        {
            "Name" : "api1",
            "Scopes" : [
                { 
                    "Name": "api1",
                    "Claims" : [

                    ]
                }
            ]
        }
    ],
    "Users" : [
        {
            "Username" : "",
            "Email" : "",
            "Password" : ""
        }

    ], 
    "Clients" : [
        {
            "ClientId" : "",
        }

    ]
}
@skoruba skoruba self-assigned this Sep 16, 2019
@skoruba
Copy link
Owner

skoruba commented Jan 24, 2020

Done in the master branch

@skoruba skoruba closed this as completed Jan 24, 2020
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

2 participants