package com.sptg.permissions.api.thirdauth.enums;

import com.sptg.permissions.api.thirdauth.constants.CtwingAuthConstants;
import com.sptg.permissions.api.thirdauth.request.AuthCtwingRequest;
import me.zhyd.oauth.config.AuthSource;
import me.zhyd.oauth.request.AuthDefaultRequest;

public enum  AuthCustomizeSource implements AuthSource {

    CTWING {
        @Override
        public String authorize() {
            return CtwingAuthConstants.UNIFY_ACCOUNT_LOGIN_URL;
        }
        @Override
        public String accessToken() {
            return CtwingAuthConstants.ACCESS_TOKEN_URL;
        }
        @Override
        public String userInfo() {
            return CtwingAuthConstants.GET_USER_INFO;
        }
        @Override
        public Class<? extends AuthDefaultRequest> getTargetClass() {
            return AuthCtwingRequest.class;
        }
    };

    private AuthCustomizeSource() { }
}
