lib/generators/rodauth/oauth/templates/app/views/rodauth/oauth_application.html.erb in rodauth-oauth-0.7.4 vs lib/generators/rodauth/oauth/templates/app/views/rodauth/oauth_application.html.erb in rodauth-oauth-0.8.0

- old
+ new

@@ -1,17 +1,23 @@ <% oauth_application = rodauth.scope.instance_variable_get(:@oauth_application) %> <div> <h2><%= oauth_application[rodauth.oauth_applications_name_column] %></h2> <dl> - <dt>Description: </dt> + <dt><%= rodauth.oauth_applications_description_label %>: </dt> <dd><%= oauth_application[rodauth.oauth_applications_description_column] %></dd> - <dt>Homepage URL: </dt> + <dt><%= rodauth.oauth_applications_homepage_url_label %>: </dt> <dd><%= oauth_application[rodauth.oauth_applications_homepage_url_column] %></dd> - <dt>Client ID: </dt> + <dt><%= rodauth.oauth_applications_client_id_label %>: </dt> <dd><%= oauth_application[rodauth.oauth_applications_client_id_column] %></dd> - <dt>Redirect URL: </dt> + <dt><%= rodauth.oauth_applications_redirect_uri_label %>: </dt> <dd><%= oauth_application[rodauth.oauth_applications_redirect_uri_column] %></dd> - <dt>Scopes: </dt> + <dt><%= rodauth.oauth_applications_scopes_label %>: </dt> <dd><%= oauth_application[rodauth.oauth_applications_scopes_column] %></dd> + <% if rodauth.features.include?(:oauth_jwt) %> + <dt><%= rodauth.oauth_applications_jws_jwk_label %>: </dt> + <dd><%= oauth_application[rodauth.oauth_applications_jws_jwk_column] %></dd> + <dt><%= rodauth.oauth_applications_jwt_public_key_label %>: </dt> + <dd><%= oauth_application[rodauth.oauth_applications_jwt_public_key_column] %></dd> + <% end %> </dl> </div> \ No newline at end of file