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

AuthModel loading at startup #1

Closed
MarcAgate opened this issue Sep 5, 2018 · 1 comment
Closed

AuthModel loading at startup #1

MarcAgate opened this issue Sep 5, 2018 · 1 comment

Comments

@MarcAgate
Copy link
Collaborator

There should be a way to load the model directly from fuseki at application startup. Currently the model is rebuilt from auth0 and bdrc policies, then updated on fuseki.
While this MUST be the case for ldspdi (which is in charge of updating the auth Model when webhooks are trigerred), it doesn't have to be that way on iiifpres or iiifserv.
So two methods in refAuthModel : reloadModel (rebuilts it) and readModel() (which reads the model from fuseki)
Reload() is used in ldspdi, Read is used anywhere else.

@MarcAgate
Copy link
Collaborator Author

This has been adressed in v. 0.2.0 : readAuthModel() reads the model from fuseki and updateAuthData() rebuilts the model from auth0 and bdrc-auth-policies.

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

1 participant