/******************************************************************************* * Copyright 2014 Federal Chancellery Austria * MOA-ID has been developed in a cooperation between BRZ, the Federal * Chancellery Austria - ICT staff unit, and Graz University of Technology. * * Licensed under the EUPL, Version 1.1 or - as soon they will be approved by * the European Commission - subsequent versions of the EUPL (the "Licence"); * You may not use this work except in compliance with the Licence. * You may obtain a copy of the Licence at: * http://www.osor.eu/eupl/ * * Unless required by applicable law or agreed to in writing, software * distributed under the Licence is distributed on an "AS IS" basis, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the Licence for the specific language governing permissions and * limitations under the Licence. * * This product combines work with different licenses. See the "NOTICE" text * file for details on the various modules and licenses. * The "NOTICE" text file is part of the distribution. Any derivative works * that you distribute must include a readable copy of the "NOTICE" text file. *******************************************************************************/ package at.gv.egovernment.moa.id.protocols.oauth20; public final class OAuth20Constants { private OAuth20Constants() { throw new InstantiationError(); } public static final String ERRORPAGE = "moa_errorcodes.html"; // error parameters and error codes public static final String PARAM_ERROR = "error"; public static final String PARAM_ERROR_DESCRIPTION = "error_description"; public static final String PARAM_ERROR_URI = "error_uri"; public static final String ERROR_INVALID_REQUEST = "invalid_request"; public static final String ERROR_UNSUPPORTED_RESPONSE_TYPE = "unsupported_response_type"; public static final String ERROR_INVALID_CLIENT = "invalid_client"; public static final String ERROR_ACCESS_DENIED = "access_denied"; public static final String ERROR_SERVER_ERROR = "server_error"; public static final String ERROR_INVALID_GRANT = "invalid_grant"; public static final String ERROR_UNAUTHORIZED_CLIENT = "unauthorized_client"; // request parameters //public static final String PARAM_OA_URL = "oaURL"; public static final String PARAM_RESPONSE_TYPE = "response_type"; public static final String PARAM_REDIRECT_URI = "redirect_uri"; public static final String PARAM_STATE = "state"; public static final String PARAM_NONCE = "nonce"; public static final String PARAM_GRANT_TYPE = "grant_type"; public static final String PARAM_GRANT_TYPE_VALUE_AUTHORIZATION_CODE = "authorization_code"; public static final String PARAM_CLIENT_ID = "client_id"; public static final String PARAM_CLIENT_SECRET = "client_secret"; public static final String PARAM_SCOPE = "scope"; public static final String PARAM_MOA_MOD = "mod"; public static final String PARAM_MOA_ACTION = "action"; public static final String PARAM_OPENID_CODE = "openid_code"; // reponse parameters public static final String RESPONSE_CODE = "code"; public static final String RESPONSE_TOKEN = "token"; public static final String RESPONSE_ACCESS_TOKEN = "access_token"; public static final String RESPONSE_ID_TOKEN = "id_token"; public static final String RESPONSE_EXPIRES_IN = "expires_in"; public static final String RESPONSE_TOKEN_TYPE = "token_type"; public static final String RESPONSE_TOKEN_TYPE_VALUE_BEARER = "Bearer"; }