protected void finalizeProfileResponse ( final AccessToken accessTokenTicket , final Map < String , Object > map , final Principal principal ) { val service = accessTokenTicket . getService ( ) ; val registeredService = servicesManager . findServiceBy ( service ) ; if ( registeredService instanceof OAuthRegisteredService ) { val oauth = ( OAuthRegisteredService ) registeredService ; map . put ( OAuth20Constants . CLIENT_ID , oauth . getClientId ( ) ) ; map . put ( CasProtocolConstants . PARAMETER_SERVICE , service . getId ( ) ) ; } }
Finalize profile response .