-
Notifications
You must be signed in to change notification settings - Fork 74
Light-OAuth2 issue #320
Comments
MariaDB shares the same database driver with MySQL. MySQL docker enables SSL by default, so we have updated the driver configuration to enable SSL on the client. However, MariaDB doesn't support SSL at the moment. I think we should remove the MariaDB docker-compose from the light-docker and update the tutorial to remove the MariaDB. What do you think? BTW, I have tried MySQL and it works. However, I have to update the client tutorial to add the host to the insert and update. The issue to update the document can be found at networknt/light-doc#272 |
Hi, i will try to clone and test mysql- compose now, and let you know feedback. |
The null exception is due to host missing in the request body. Try the updated document and it and should work. |
Where to update hostname? Server start: https://doc.networknt.com/tutorial/oauth/start/ Example followed here : https://doc.networknt.com/tutorial/oauth/token/
|
You don't need to update anything. Just copy the latest curl command from the client tutorial. Looks like you are trying the token endpoint and get another exception. Let me take a look and update the document. BTW, I have updated the doc to mark the MariaDB deprecated. |
Thanks
|
You are using the authorization code grant type without getting the authorization code. Follow the code.md before getting the token. Or just use the client credential flow. |
I have updated the document to clarify the step for authorization code flow. |
Hi,
i am unable to test , followed these two links
mariadb compose https://doc.networknt.com/tutorial/oauth/start/
try to registre client: https://doc.networknt.com/tutorial/oauth/client/
Mariadb 10.3
networknt/oauth2-XXX : 2.0.19
Client Error:
=======
[admin@centos8 ~]$ curl -k -H "Content-Type: application/json" \
{"statusCode":500,"code":"ERR10010","message":"RUNTIME_EXCEPTION","description":"Unexpected runtime exception","severity":"ERROR"}[admin@centos8 ~]$
Server Error
========
oauth2-client_1 | 22:09:34.459 [XNIO-1 task-1] lvfFJgRcSQWRcusNh4Z76Q ERROR c.n.exception.ExceptionHandler handleRequest - Exception:
oauth2-client_1 | java.lang.RuntimeException: java.sql.SQLException: Trying to connect with ssl, but ssl not enabled in the server
oauth2-client_1 | at com.networknt.oauth.cache.ClientMapStore.load(ClientMapStore.java:118)
oauth2-client_1 | at com.networknt.oauth.cache.ClientMapStore.load(ClientMapStore.java:19)
oauth2-client_1 | at com.hazelcast.map.impl.MapStoreWrapper.load(MapStoreWrapper.java:165)
oauth2-client_1 | at com.hazelcast.map.impl.mapstore.writethrough.WriteThroughStore.load(WriteTh
The text was updated successfully, but these errors were encountered: