Sha256: 17fa402da420c0aae16f6f01a2c50c74b40601a862f600d564699a35b7fc5e7b

Contents?: true

Size: 1.03 KB

Versions: 10

Compression:

Stored size: 1.03 KB

Contents

<form method="post" action="#{rodauth.device_path}" class="form-horizontal" role="form" id="device-verification-form">
  #{csrf_tag(rodauth.device_path) if respond_to?(:csrf_tag)}
  <p class="lead">The device with user code #{@oauth_grant[rodauth.oauth_grants_user_code_column]} would like to access your data.</p>

  <div class="form-group">
    <h1 class="display-6">#{rodauth.oauth_tokens_scopes_label}</h1>

    <ul class="list-group">
    #{
      scopes = @oauth_grant[rodauth.oauth_grants_scopes_column].split(rodauth.oauth_scope_separator)
      scopes.map do |scope|
        <<-HTML
          <li class="list-group-item">#{scope}</li>
        HTML
      end.join
    }
    </ul>
  </div>
  <input type="hidden" name="user_code" value="#{rodauth.param("user_code")}"/>
  <p class="text-center">
    <input type="submit" class="btn btn-outline-primary" value="#{h(rodauth.oauth_device_verification_button)}"/>
    <a href="#{rodauth.device_path}?error=access_denied" class="btn btn-outline-danger">#{rodauth.oauth_cancel_button}</a>
  </p>
</form>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rodauth-oauth-0.10.4 templates/device_verification.str
rodauth-oauth-0.10.3 templates/device_verification.str
rodauth-oauth-0.10.2 templates/device_verification.str
rodauth-oauth-0.10.1 templates/device_verification.str
rodauth-oauth-0.10.0 templates/device_verification.str
rodauth-oauth-0.9.3 templates/device_verification.str
rodauth-oauth-0.9.2 templates/device_verification.str
rodauth-oauth-0.9.1 templates/device_verification.str
rodauth-oauth-0.9.0 templates/device_verification.str
rodauth-oauth-0.8.0 templates/device_verification.str