我有一个使用Spring-Security-oauth2构建的独立ResourceServer.这是代码RemoteTokenService.
@Bean
public ResourceServerTokenServices tokenService() {
RemoteTokenServices tokenServices = new RemoteTokenServices();
tokenServices.setClientId("sample_test_client_app");
tokenServices.setClientSecret("secret");
tokenServices.setCheckTokenEndpointUrl("http://localhost:8080/oauth/check_token");
return tokenServices;
}
Run Code Online (Sandbox Code Playgroud)
当我使用AccessToken访问资源服务器时,我得到以下内容:
FilterSecurityInterceptor - Secure object: FilterInvocation: URL: /oauth/check_token; Attributes: [denyAll()]
FilterSecurityInterceptor - Previously Authenticated: org.springframework.security.authentication.UsernamePasswordAuthenticationToken@c3f3b25: Principal: org.springframework.security.core.userdetails.User@3c0cd8e: Username: sample_test_client_app; Password: [PROTECTED]; Enabled: true; AccountNonExpired: true; credentialsNonExpired: true; AccountNonLocked: true; Not granted any authorities; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@957e: RemoteIpAddress: 127.0.0.1; SessionId: null; Not granted any authorities
AffirmativeBased - Voter: org.springframework.security.web.access.expression.WebExpressionVoter@6172e10, returned: -1
ExceptionTranslationFilter - Access is denied (user is not anonymous); delegating …Run Code Online (Sandbox Code Playgroud) spring spring-security access-token oauth-2.0 spring-security-oauth2
我正在使用facebook图api使用javascript sdk.我正在使用他们的喜欢计数和用户获取页面提要以及相同的评论.但过了一段时间后,我的所有页面帖子和评论都出现了错误的user_id.
当我想用facebook图形资源管理器来获取它时,它给了我正确的结果.我已经使用了app_access_token和user-access-token .. facebook graph api有什么问题.
javascript facebook facebook-like facebook-graph-api facebook-javascript-sdk
我们正在使用 Quartz 2.2.1,并且发现客户和我们自己的站点发生以下异常。石英桌似乎已损坏。
有谁见过这个或知道如何解决它?
更新
2017-04-18 00:01:38,685 ERROR org.quartz.impl.jdbcjobstore.JobStoreTX MisfireHandler: Error handling misfires: Couldn't retrieve trigger: No record found for selection of Trigger with key: 'DEFAULT.Delete PS Audit logs' and statement: SELECT * FROM QRTZ_SIMPLE_TRIGGERS WHERE SCHED_NAME = 'MFTScheduler' AND TRIGGER_NAME = ? AND TRIGGER_GROUP = ?
org.quartz.JobPersistenceException: Couldn't retrieve trigger: No record found for selection of Trigger with key: 'DEFAULT.Delete PS Audit logs' and statement: SELECT * FROM QRTZ_SIMPLE_TRIGGERS WHERE SCHED_NAME = 'MFTScheduler' AND TRIGGER_NAME = ? AND TRIGGER_GROUP …Run Code Online (Sandbox Code Playgroud)