- def new
- @client_application = ClientApplication.new
- end
-
- def create
- @client_application = @user.client_applications.build(application_params)
- if @client_application.save
- flash[:notice] = t 'oauth_clients.create.flash'
- redirect_to :action => "show", :id => @client_application.id
- else
- render :action => "new"
- end
+ def index
+ @client_applications = current_user.client_applications
+ @tokens = current_user.oauth_tokens.authorized