Class: Identisure::Vipps::Endpoint

Inherits:
Object
  • Object
show all
Defined in:
lib/identisure/vipps.rb

Instance Method Summary collapse

Instance Method Details

#auth(req) ⇒ Object



132
# File 'lib/identisure/vipps.rb', line 132

def auth(req)             = Status.from_json(@transport.post('/v3/vipps/auth', req.to_h))

#auth_status(id) ⇒ Object



134
# File 'lib/identisure/vipps.rb', line 134

def auth_status(id)       = Status.from_json(@transport.get("/v3/vipps/auth/#{id}"))

#backchannel_auth(req) ⇒ Object



133
# File 'lib/identisure/vipps.rb', line 133

def backchannel_auth(req) = Status.from_json(@transport.post('/v3/vipps/backchannel/auth', req.to_h))

#cancel_auth(id) ⇒ Object



135
# File 'lib/identisure/vipps.rb', line 135

def cancel_auth(id)       = @transport.delete("/v3/vipps/auth/#{id}")

#wait_for_auth(id, opts: PollOptions.new) ⇒ Object



137
# File 'lib/identisure/vipps.rb', line 137

def wait_for_auth(id, opts: PollOptions.new) = poll(opts) { auth_status(id) }