Hi,
I am trying to use OrientDB as JdbcTokenStore for the
AuthorizationServerConfigurerAdapter in the Spring MVC Security OAuth2
module. I am getting the following error when the Authentication bean is
trying to store the authenticated tokens in the DB
{"timestamp":1420109129595,"status":401,"error":"Unauthorized","message":"Error
creating bean with name 'scopedTarget.clientDetailsService' defined in
class path resource
[org/springframework/security/oauth2/config/annotation/configuration/ClientDetailsServiceConfiguration.class]:
Bean instantiation via factory method failed; nested exception is
org.springframework.beans.BeanInstantiationException: Failed to instantiate
[org.springframework.security.oauth2.provider.ClientDetailsService]:
Factory method 'clientDetailsService' threw exception; nested exception is
java.lang.ClassCastException:
com.orientechnologies.orient.core.record.impl.ODocument cannot be cast to
java.lang.Integer"}
I am using DATETIME type in replacement for the timestamp for the following
class and BINARY for LONGVARBINARY type in another class.
> info class oauth_approvals
Class................: oauth_approvals
Default cluster......: oauth_approvals (id=24)
Supported cluster ids: [24]
Cluster selection....: round-robin
PROPERTIES
-------------------------------+-------------+-------------------------------+-----------+----------+----------+-----------+-----------+----------+
NAME | TYPE | LINKED TYPE/CLASS
| MANDATORY | READONLY | NOT NULL | MIN | MAX | COLLATE |
-------------------------------+-------------+-------------------------------+-----------+----------+----------+-----------+-----------+----------+
clientId | STRING | null
| false | false | false | | | default |
scope | STRING | null
| false | false | false | | | default |
lastModifiedAt | DATETIME | null
| false | false | false | | | default |
userId | STRING | null
| false | false | false | | | default |
expiresAt | DATETIME | null
| false | false | false | | | default |
status | STRING | null
| false | false | false | | | default |
-------------------------------+-------------+-------------------------------+-----------+----------+----------+-----------+-----------+----------+
Is the DATETIME compatible with TIMESTAMP value?
Please help.
Thanks,
Noorul
--
---
You received this message because you are subscribed to the Google Groups
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.