I hereby claim:
- I am CraigPlummer on github.
- I am craigplummer (https://keybase.io/craigplummer) on keybase.
- I have a public key whose fingerprint is 857C 5E9E 11F8 8A7D AA0B 74FB 5013 21FF 2AF6 66F2
To claim this, I am signing this object:
| require 'azure_ad_json_web_token' | |
| class AzureAdJsonWebTokenStrategy < ::Warden::Strategies::Base | |
| def valid? | |
| token | |
| end | |
| def authenticate! | |
| if claims | |
| success! claims |
| class AzureAdJsonWebToken | |
| def self.rsa_key | |
| url = URI.parse('https://login.windows.net/common/discovery/keys') | |
| key_file = JSON.parse(Net::HTTP.get(url)) | |
| x5c = Base64.decode64(key_file['keys'][0]['x5c'][0]) | |
| OpenSSL::X509::Certificate.new(x5c).public_key | |
| end | |
| def self.aud | |
| ENV['aud'] |
| gem 'jwt', '~> 1.5.0' | |
| gem 'warden', '~> 1.2.0' |
| gem 'jwt', '~> 1.5.0' | |
| gem 'warden', '~> 1.2.0' |
| <?xml version="1.0" encoding="utf-8"?> | |
| <EntityDescriptor ID="_271f377f-78d8-4133-8c46-a73c4936bb1f" entityID="https://example.com" xmlns="urn:oasis:names:tc:SAML:2.0:metadata"> | |
| <RoleDescriptor xsi:type="fed:ApplicationServiceType" xmlns:fed="http://docs.oasis-open.org/wsfed/federation/200706" protocolSupportEnumeration="http://docs.oasis-open.org/wsfed/federation/200706" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
| <fed:TargetScopes> | |
| <wsa:EndpointReference xmlns:wsa="http://www.w3.org/2005/08/addressing"> | |
| <wsa:Address>https://example.com/</wsa:Address> | |
| </wsa:EndpointReference> | |
| </fed:TargetScopes> | |
| <fed:PassiveRequestorEndpoint> | |
| <wsa:EndpointReference xmlns:wsa="http://www.w3.org/2005/08/addressing"> |
I hereby claim:
To claim this, I am signing this object:
| # Load mod_jk module | |
| LoadModule jk_module "/Applications/ColdFusion10/config/wsconfig/1/mod_jk.so" | |
| # Where to find workers.properties | |
| JkWorkersFile "/Applications/ColdFusion10/config/wsconfig/1/workers.properties" | |
| JkMountFile "/Applications/ColdFusion10/config/wsconfig/1/uriworkermap.properties" | |
| # Where to put jk logs | |
| JkLogFile "/Applications/ColdFusion10/config/wsconfig/1/mod_jk.log" | |