001/*
002 * (C) Copyright 2017 Nuxeo (http://nuxeo.com/) and others.
003 *
004 * Licensed under the Apache License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 *     http://www.apache.org/licenses/LICENSE-2.0
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 *
016 * Contributors:
017 *     Thomas Roger
018 *
019 */
020
021package org.nuxeo.ecm.platform.oauth2;
022
023/**
024 * @since 9.2
025 */
026public final class Constants {
027
028    private Constants() {
029        // constants class
030    }
031
032    public static final String TOKEN_SERVICE = "org.nuxeo.server.token.store";
033
034    public static final String RESPONSE_TYPE_PARAM = "response_type";
035
036    public static final String CODE_RESPONSE_TYPE = "code";
037
038    public static final String SCOPE_PARAM = "scope";
039
040    public static final String STATE_PARAM = "state";
041
042    public static final String CLIENT_ID_PARAM = "client_id";
043
044    public static final String CLIENT_SECRET_PARAM = "client_secret";
045
046    public static final String REDIRECT_URI_PARAM = "redirect_uri";
047
048    public static final String REDIRECT_URL_PARAM = "redirect_url";
049
050    public static final String AUTHORIZATION_CODE_PARAM = "code";
051
052    public static final String REFRESH_TOKEN_PARAM = "refresh_token";
053
054    public static final String GRANT_TYPE_PARAM = "grant_type";
055
056    public static final String AUTHORIZATION_CODE_GRANT_TYPE = "authorization_code";
057
058    public static final String REFRESH_TOKEN_GRANT_TYPE = "refresh_token";
059
060}