All Downloads are FREE. Search and download functionalities are using the official Maven repository.

Eiffel.framework.auth.oauth.mustache Maven / Gradle / Ivy

There is a newer version: 7.8.0
Show newest version
{{>noteinfo}}
class
	OAUTH

inherit

	AUTHENTICATION

feature -- Access

	access_token: detachable STRING_32

feature -- Change Element

	set_access_token (a_token: STRING_32)
			-- Set `access_token' with `a_token'.
		do
			access_token := a_token
		ensure
			access_token_set: access_token = a_token
		end

	apply_to_params(a_query_params: LIST [TUPLE [name:STRING; value:STRING]]; a_header_params: STRING_TABLE [STRING])
   			-- .
		do
			if attached access_token as l_access_token then
				a_header_params.force ("Bearer " + l_access_token,"Authorization" )
			end
		end
end




© 2015 - 2024 Weber Informatics LLC | Privacy Policy