passageidentity 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +30 -0
- data/lib/passageidentity/auth.rb +0 -2
- data/passageidentity.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 150a9a5019bc8edcee52a97ca0827e550bcdddf331c53a5d30b93d9ee34c654a
|
4
|
+
data.tar.gz: 2e426bb06a6b0f48215bd6fc65f14f16bbe89533ef43268477345d6ee1ca10c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ccb948349018b0b7d6cca610f450c7ec73a14bb36043d1470186178b7a009f6e3c064812bff3016df0d5366b017e15bf1a58dd6226cca2feab3d91fa283e4d58
|
7
|
+
data.tar.gz: fe4a77185f3c88c1cde260a55ed9f238b7fc909bcdf57746eb9bd3023ac9ff08f178c6d8c6bd74451e8a8f7c6df79dd5386b46efbf10f538a194bef2570d3ecf
|
data/README.md
CHANGED
@@ -51,6 +51,36 @@ class ApplicationController < ActionController::Base
|
|
51
51
|
end
|
52
52
|
```
|
53
53
|
|
54
|
+
## Retrieve App Info
|
55
|
+
|
56
|
+
To retrieve information about an app , you should use the `get_app` method.
|
57
|
+
|
58
|
+
```ruby
|
59
|
+
require 'passageidentity'
|
60
|
+
|
61
|
+
PassageClient =
|
62
|
+
Passage::Client.new(app_id: PASSAGE_APP_ID)
|
63
|
+
app_info = PassageClient.get_app()
|
64
|
+
|
65
|
+
```
|
66
|
+
|
67
|
+
The information available in the Passage App struct returned by PassageClient.get_app():
|
68
|
+
|
69
|
+
```ruby
|
70
|
+
Struct.new :name,
|
71
|
+
:id,
|
72
|
+
:auth_origin,
|
73
|
+
:redirect_url,
|
74
|
+
:login_url,
|
75
|
+
:rsa_public_key,
|
76
|
+
:allowed_identifer,
|
77
|
+
:required_identifier,
|
78
|
+
:require_email_verification,
|
79
|
+
:session_timeout_length,
|
80
|
+
:user_metadata_schema,
|
81
|
+
:layouts,
|
82
|
+
```
|
83
|
+
|
54
84
|
## Retrieve User Info
|
55
85
|
|
56
86
|
To retrieve information about a user, you should use the `get` method. You will need to use a Passage API key, which can be created in the Passage Console under your Application Settings. This API key grants your web server access to the Passage management APIs to get and update information about users. This API key must be protected and stored in an appropriate secure storage location. It should never be hard-coded in the repository.
|
data/lib/passageidentity/auth.rb
CHANGED
data/passageidentity.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'passageidentity'
|
3
|
-
s.version = '0.0.
|
3
|
+
s.version = '0.0.7'
|
4
4
|
s.summary = 'Passage SDK for biometric authentication'
|
5
5
|
s.description =
|
6
6
|
'Enables verification of server-side authentication and user management for applications using Passage'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: passageidentity
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Passage Identity
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-06-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|