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

[INJICERT-248] Simplify configuration of the well-known config (#49) #64

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

vharsh
Copy link
Member

@vharsh vharsh commented Aug 8, 2024

this changeset has been added back again post config-server stabalization for easier configuration

@@ -27,7 +27,7 @@ mosip.certify.authn.filter-urls={ '${server.servlet.path}/issuance/credential',
mosip.certify.authn.issuer-uri=http://localhost:8088/v1/esignet
mosip.certify.authn.jwk-set-uri=http://localhost:8088/v1/esignet/oauth/.well-known/jwks.json
mosip.certify.authn.allowed-audiences={ '${mosipbox.public.url}${server.servlet.path}/issuance/credential', 'http://localhost:8088/v1/esignet/vci/credential' }

mosip.certify.well-known.file.uri=https://raw.githubusercontent.com/mosip/inji-config/develop/certify-mock-openid4vci-wk.json
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should rename this file to certify-mock-identity-issuer-metadata.json.
Config files for other usecases should be renamed to match this naming convention.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the previous review Anusha had suggested to specify the Spec for well-known as well, i.e. openid4vci as there're other well-knowns as well.

ref: #49 (comment)

How about renaming it to certify-mock-identity-issuer-openid4vci-well-known.json ?

How many other well-known configurations do we expect to see in the Inji Stack/MOSIP Stack in the near future?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It will not be immediate, so I suggest leaving the openid4vci part since it will make the file name too big.

Copy link
Member

@vishwa-vyom vishwa-vyom Nov 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I actually mean to remove the openid4vci part from the name, but I think the file name is changed to just openid4vci

certify-service/src/main/resources/openid4vci-wk.json Outdated Show resolved Hide resolved
@vharsh
Copy link
Member Author

vharsh commented Oct 16, 2024

@jainhitesh9998 Here's the config PR for this changeset --> mosip/inji-config#378

@vharsh vharsh requested a review from swatigoel October 16, 2024 15:54
)

* [INJICERT-248] use well known config from spring from separate JSON file

Signed-off-by: Harsh Vardhan <[email protected]>

* [INJICERT-248] fixup JSON formatting of well-known config

Signed-off-by: Harsh Vardhan <[email protected]>

* [INJICERT-248] Fixup formatting & resource URL

Signed-off-by: Harsh Vardhan <[email protected]>

* [INJICERT-248] add missing config for mock-identity

Signed-off-by: Harsh Vardhan <[email protected]>

* [INJICERT-248] parse metadata when mediatype is text/plain

Signed-off-by: Harsh Vardhan <[email protected]>

* [INJICERT-248] rename openid4vci well known file

Signed-off-by: Harsh Vardhan <[email protected]>

---------

Signed-off-by: Harsh Vardhan <[email protected]>
mosip.certify.well-known.file.uri -> mosip.certify.issuer-metadata.config-url

Signed-off-by: Harsh Vardhan <[email protected]>
@jainhitesh9998
Copy link
Contributor

Approved, this changes has to go along with inji-config changes

@@ -45,6 +45,7 @@ mosip.certify.security.ignore-auth-urls=**/actuator/**,**/error,**/swagger-ui/**
## ------------------------------------------ Discovery openid-configuration -------------------------------------------
mosip.certify.discovery.issuer-id=${mosipbox.public.url}${server.servlet.path}
mosip.certify.authorization.url=http://localhost:8088
mosip.certify.issuer-metadata.config-url=https://raw.githubusercontent.com/mosip/inji-config/develop/certify-mock-openid4vci-wk.json
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll handle the docker compose setup in a separate PR.

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

Successfully merging this pull request may close these issues.

4 participants