lib/oclc/auth/wskey.rb
# Retuns an OCLC::Auth::AccessToken object when given an authorization code
#
# [auth_code] the authorization code returne from OCLC's Authorization Server as a result of sending 
#             a user's browser through the login process.
# [authenticating_institution_id] the WorldCat Registry ID of the institution that will login the user
# [context_institution_id] the WorldCat Registry ID of the institution whose data will be accessed
Retuns an OCLC::Auth::AccessToken object when given an authorization code
[auth_code] the authorization code returne from OCLC's Authorization Server as a result of sending
a user's browser through the login process.
[authenticating_institution_id] the WorldCat Registry ID of the institution that will login the user
[context_institution_id] the WorldCat Registry ID of the institution whose data will be accessed
Retuns an OCLC :: Auth :: AccessToken object when given an authorization code [ auth_code ] the authorization code returne from OCLC ' s Authorization Server as a result of sending a user ' s browser through the login process . [ authenticating_institution_id ] the WorldCat Registry ID of the institution that will login the user [ context_institution_id ] the WorldCat Registry ID of the institution whose data will be accessed
def auth_code_token(auth_code, authenticating_institution_id, context_institution_id)
        options = {:redirect_uri => redirect_uri, :code => auth_code}
        token = OCLC::Auth::AccessToken.new('authorization_code', services.join(' '), authenticating_institution_id, context_institution_id, options)
        if @auth_server_url
         token.auth_server_url = @auth_server_url + '/accessToken'
        end
        token.create!(self)
        token
      end
def auth_code_token ( auth_code , authenticating_institution_id , context_institution_id ) options = { :redirect_uri => redirect_uri , :code => auth_code } token = OCLC :: Auth :: AccessToken . new ( 'authorization_code' , services . join ( ' ' ) , authenticating_institution_id , context_institution_id , options ) if @auth_server_url token . auth_server_url = @auth_server_url + '/accessToken' end token . create! ( self ) token end
Retuns an OCLC::Auth::AccessToken object when given an authorization code
[auth_code] the authorization code returne from OCLC's Authorization Server as a result of sending
a user's browser through the login process.
Retuns an OCLC :: Auth :: AccessToken object when given an authorization code [ auth_code ] the authorization code returne from OCLC ' s Authorization Server as a result of sending a user ' s browser through the login process .
auth_code
<not_specific>
authenticating_institution_id
<not_specific>
context_institution_id
<not_specific>