Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
Eclipse Foundation API SDK
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Eclipse Foundation
IT
APIs
Eclipse Foundation API SDK
Merge requests
!75
Draft: feat: Add Drupal OAuth2 support into new efservices module
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
Draft: feat: Add Drupal OAuth2 support into new efservices module
zacharysabourin/eclipsefdn-api-common:zacharysabourin/main/35
into
main
Overview
1
Commits
5
Pipelines
0
Changes
14
Closed
Zachary Sabourin
requested to merge
zacharysabourin/eclipsefdn-api-common:zacharysabourin/main/35
into
main
2 years ago
Overview
1
Commits
5
Pipelines
0
Changes
14
Expand
Resolves
#35 (closed)
0
0
Merge request reports
Compare
main
version 4
1e0d9c7f
2 years ago
version 3
911d6c27
2 years ago
version 2
c1e8194d
2 years ago
version 1
dd9147b3
2 years ago
main (base)
and
latest version
latest version
b50c6324
5 commits,
2 years ago
version 4
1e0d9c7f
4 commits,
2 years ago
version 3
911d6c27
3 commits,
2 years ago
version 2
c1e8194d
2 commits,
2 years ago
version 1
dd9147b3
1 commit,
2 years ago
14 files
+
625
−
5
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
14
Search (e.g. *.vue) (Ctrl+P)
efservices/src/main/java/org/eclipsefoundation/efservices/api/DrupalOAuthAPI.java
0 → 100644
+
34
−
0
Options
/*********************************************************************
* Copyright (c) 2023 Eclipse Foundation.
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* Author: Zachary Sabourin <zachary.sabourin@eclipse-foundation.org>
*
* SPDX-License-Identifier: EPL-2.0
**********************************************************************/
package
org.eclipsefoundation.efservices.api
;
import
javax.ws.rs.GET
;
import
javax.ws.rs.Path
;
import
javax.ws.rs.PathParam
;
import
javax.ws.rs.Produces
;
import
javax.ws.rs.core.MediaType
;
import
org.eclipse.microprofile.rest.client.inject.RegisterRestClient
;
import
org.eclipsefoundation.efservices.models.DrupalOAuthData
;
/**
* Drupal OAuth2 token validation API binding
*/
@Path
(
"oauth2/tokens"
)
@Produces
(
MediaType
.
APPLICATION_JSON
)
@RegisterRestClient
(
configKey
=
"accounts-api"
)
public
interface
DrupalOAuthAPI
{
@GET
@Path
(
"{token}"
)
DrupalOAuthData
getTokenInfo
(
@PathParam
(
"token"
)
String
token
);
}
Loading