2015-12-08 22:57:38 -05:00
|
|
|
|
using System;
|
2016-05-19 19:10:24 -04:00
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
|
|
using Microsoft.AspNetCore.Authorization;
|
2015-12-08 22:57:38 -05:00
|
|
|
|
using Bit.Core.Exceptions;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Bit.Api.Controllers
|
|
|
|
|
|
{
|
2017-01-20 22:33:55 -05:00
|
|
|
|
[Obsolete]
|
2015-12-08 22:57:38 -05:00
|
|
|
|
[Route("auth")]
|
|
|
|
|
|
public class AuthController : Controller
|
|
|
|
|
|
{
|
|
|
|
|
|
[HttpPost("token")]
|
|
|
|
|
|
[AllowAnonymous]
|
2017-06-06 23:19:42 -04:00
|
|
|
|
public IActionResult PostToken()
|
2015-12-08 22:57:38 -05:00
|
|
|
|
{
|
2017-06-06 23:19:42 -04:00
|
|
|
|
throw new BadRequestException("You are using an outdated version of bitwarden that is no longer supported. " +
|
|
|
|
|
|
"Please update your app first and try again.");
|
2015-12-08 22:57:38 -05:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|