Question Michele De Chiffre · Aug 19, 2022 Unknown grant type OAuth 2.0 Authorization Code Flow I'm trying to authorise my app using OAuth 2.0 i Cache. Sadly I'm unable to exchange the authorization code for an access token. I am able to redirect user to the /authorize page, where the user can login and approve my app. The user is then correctly redirected back to my app and a ?code parameter is sent back. #Access control #OAuth2 #Caché 0 1 0 456
Question Michele De Chiffre · Sep 2, 2021 Save AccessToken OAuth2 I'm trying to save a list of AccessTokens a user for a specific user. This way I could present it together with other user-data. I have tried calling ##class(OAuth2.Server.AccessToken).OpenByCode(authCode) from %OAuth2.Server.Authenticate's AfterAuthenticate() method. This only returns things like State and AuthorizationCode, but the AccessToken is empty at this point (afterwards it becomes filled out). Is there a way to achieve storing the AccessToken as part of the login system? #OAuth2 #Caché 0 1 0 257
Question Michele De Chiffre · Aug 9, 2021 OAuth SSL certificate error I'm trying to implement an OAuth2 server, but I have som issues when trying to setup JWT under OAuth 2.0->Client. I get the error message saying "No match between server name 'localhost' and SSL certificate values 'cache'". I have set up a SSL/TLS configuration as simple as possible without any certificate files. I'm accessing my server via HTTPS with an unsigned certificate. Can anyone point me in the right direction on how to resolve the issue I'm encountering. #OAuth2 #SSL #Caché 0 1 0 551
Question Michele De Chiffre · Mar 11, 2021 CORS in REST service when using Maps I'm trying to setup a REST server with CORS support. I have created a class that handles a specific part of the service (printer control). This class I have referenced in my main REST class by adding <Map Prefix="/print" Forward="myClass.PrintAPI" /> My main class does have its own <Route>s and handles CORS requests perfectly. But in my subclass OnHandleCorsRequest() is only run when requesting from same origin and never run when making a CORS request. I have set Parameter HandleCorsRequest = "true" in both my main REST class and the subclass. #Mapping #REST API #InterSystems IRIS 0 4 1 383