omniauth-microsoft-identity2 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4569a0404462574684b79709fdbccccee5e8622f98ce34fb7d50eaf883447e91
4
- data.tar.gz: 0cdaff3fc5ff3cfb7e43dd21b91fa2add62ed65cd59955b2c69fad9e9bafd650
3
+ metadata.gz: 6b297464a56ceea993a5ae06c370b0e9ce2326724cdfb913d82370eea389a8ad
4
+ data.tar.gz: 6b19a77fefb49221be98df7a38b9e4f998963fdda0ac985237fff87befb591ce
5
5
  SHA512:
6
- metadata.gz: b999e7fec5937388059cab737e3222ba63f2637a69e61be24f7013ec5dca19094c0928c0bad474568e1cf1bce8117e6379f9a32d804d7111c90b0c8fd4e7904e
7
- data.tar.gz: 42c571fca827b0c345a4969b6058ebb92ecb4364a99ca74791b3573b196806856644e9c666bcc7fbbfbf620b1d1d2a30002b17fd813c59b9527cd502db47e15a
6
+ metadata.gz: 8f638a48c1b1cfcf67ce659066011f28ebcaafca0f1c6620698d77704610d9899ee051c3b7d72cb8469de1c1399879422c3085e261f33ba9c935670f29bf02e0
7
+ data.tar.gz: 6692e1f0d2160e5c764b803d21fb0a26a75e9e2d225912c313bec119aebe78140a503a84b7cf3d70af0637fc108332c2fd3e4859b7960aa6f7d7780f76f5cbdc
data/README.md CHANGED
@@ -76,35 +76,53 @@ Example payload from `request.env['omniauth.auth']` (realistic shape, anonymized
76
76
  "email": "sample@example.test",
77
77
  "first_name": "Sample",
78
78
  "last_name": "User",
79
- "nickname": "sample@example.test"
79
+ "nickname": "sample@example.test",
80
+ "image": "https://graph.microsoft.com/v1.0/me/photo/$value"
80
81
  },
81
82
  "credentials": {
82
83
  "token": "eyJ0eXAiOiJKV1QiLCJhbGciOi...",
83
- "refresh_token": "0.AXwA...",
84
- "expires_at": 1772691847,
84
+ "refresh_token": "1.Aa4A...<redacted>",
85
+ "expires_at": 1772697856,
85
86
  "expires": true,
86
- "scope": "openid profile email offline_access User.Read"
87
+ "scope": "email openid profile User.Read"
87
88
  },
88
89
  "extra": {
89
90
  "raw_info": {
91
+ "aud": "client-id",
92
+ "iss": "https://login.microsoftonline.com/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee/v2.0",
93
+ "iat": 1772692424,
94
+ "nbf": 1772692424,
95
+ "exp": 1772696324,
96
+ "sid": "session-id-value",
97
+ "uti": "token-uti-value",
98
+ "ver": "2.0",
99
+ "idp": "https://sts.windows.net/tenant-id/",
90
100
  "tid": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
91
101
  "oid": "11111111-2222-3333-4444-555555555555",
92
- "sub": "aaaaaaaaaaaaaaaaaaaa",
102
+ "sub": "subject-value",
93
103
  "name": "Sample User",
94
104
  "given_name": "Sample",
95
105
  "family_name": "User",
96
106
  "preferred_username": "sample@example.test",
97
- "email": "sample@example.test"
107
+ "email": "sample@example.test",
108
+ "picture": "https://graph.microsoft.com/v1.0/me/photo/$value"
98
109
  },
99
110
  "id_token": "eyJhbGciOiJSUzI1NiIsImtpZCI6I...redacted...",
100
111
  "id_info": {
112
+ "aud": "client-id",
113
+ "iss": "https://login.microsoftonline.com/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee/v2.0",
114
+ "iat": 1772692424,
115
+ "nbf": 1772692424,
116
+ "exp": 1772696324,
117
+ "sid": "session-id-value",
118
+ "uti": "token-uti-value",
119
+ "ver": "2.0",
120
+ "idp": "https://sts.windows.net/tenant-id/",
101
121
  "tid": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
102
122
  "oid": "11111111-2222-3333-4444-555555555555",
103
- "sub": "aaaaaaaaaaaaaaaaaaaa",
123
+ "sub": "subject-value",
104
124
  "name": "Sample User",
105
- "preferred_username": "sample@example.test",
106
- "iat": 1772689518,
107
- "exp": 1772693118
125
+ "preferred_username": "sample@example.test"
108
126
  }
109
127
  }
110
128
  }
@@ -2,6 +2,6 @@
2
2
 
3
3
  module OmniAuth
4
4
  module MicrosoftIdentity2
5
- VERSION = '1.0.1'
5
+ VERSION = '1.0.2'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-microsoft-identity2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Claudio Poli