Token Authentication with "Sign in with Apple"

35 views
Skip to first unread message

Paolo Proni

unread,
Jun 13, 2021, 4:45:51 PM6/13/21
to WildFly
Hi,
  I need the detailed step by step configuration in order to let my Swift app in a iPhone to call a simple REST service.
  From the iPhone I send an Authorization bearer which contains ad Identity Token.
  I tryed to configure wildly:

  /subsystem=elytron/key-store=jwt-key-store:add(type="JKS",relative-to=jboss.server.config.dir,path="jwt.keystore",credential-reference={clear-text="secret"})

/subsystem=elytron/token-realm=jwt-realm:add(jwt={issuer=["quickstart-jwt-issuer"],audience=["jwt-audience"],key-store=jwt-key-store,certificate="alias"},principal-claim="sub")

/subsystem=elytron/http-authentication-factory=jwt-http-authentication:add(security-domain=jwt-domain,http-server-mechanism-factory=global,mechanism-configurations=[{mechanism-name="BEARER_TOKEN",mechanism-realm-configurations=[{realm-name="jwt-realm"}]}])

/subsystem=undertow/application-security-domain=other:add(http-authentication-factory=jwt-http-authentication)


I get 3 keys from here: https://appleid.apple.com/auth/keys and I do not know which to use and what to put in the configuration and how.

I have found this: https://keycloak.discourse.group/t/sign-in-with-apple/119/28 but I do not understand how to practically do it. Do I need Keycloak?

I have also found this: https://www.programmersought.com/article/25074042858/ but I do not know how to use it with Wildfly! Is it correct ?

Please help me.
Paolo

Reply all
Reply to author
Forward
0 new messages